Property
Languagejava
Severitymedium
CWECWE-94: Improper Control of Generation of Code (‘Code Injection’)
OWASPA03:2021 - Injection
Confidence LevelLow
Impact LevelHigh
Likelihood LevelLow

Description#

The code builds and evaluates expressions using unvalidated or dynamic input, such as with ExpressionFactory in Java. This allows user-supplied data to control what gets executed, making the application vulnerable to code injection.

Impact#

If exploited, an attacker could inject malicious expressions or code, leading to unauthorized actions, data exposure, or complete compromise of the server. This could let attackers run arbitrary operations in your application’s context, risking data integrity and system security.