Apache Commons OGNL Improper Neutralization of Expression Delimiters Vulnerability Allowing Remote Code Execution

Vulnerability

A vulnerability exists in Apache Commons OGNL in all versions, due to improper neutralization of expression and command delimiters. This issue arises when the Ognl.getValue API is used, as the OGNL engine can parse and evaluate expressions with significant power, including accessing and invoking methods. While OgnlRuntime tries to block certain dangerous classes and methods, such as those in java.lang.Runtime, these restrictions are not thorough. Attackers might exploit this gap by using class objects not covered by the blocklist to bypass restrictions and potentially execute arbitrary code. This vulnerability is particularly concerning because Apache Commons OGNL is a retired project, and no fix will be released. Users are advised to seek alternatives or limit access to trusted users.

Impact

Exploitation of this vulnerability could lead to arbitrary code execution on the server where Apache Commons OGNL is used.

Remediation

As this project is retired, no official fix will be released. Users are recommended to find an alternative or restrict access to the instance to trusted users.

Added: Aug 18, 2025, 8:23 PM
Updated: Aug 18, 2025, 9:21 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
7.4
remediation
0.0
relevance
0.3
threat
0.0
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.