CVE-2025-54656: Apache Struts Extras Before 2 has an Improper Output Neutralization for Logs Vulnerability
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
7/30/2025
Updated
7/30/2025
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.struts:struts-extras | maven | <= 1.3.10 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability exists in the LookupDispatchAction
class within the Apache Struts Extras library. The getMethodName
method retrieves a parameter value from the HTTP request and uses it to look up a method to execute. This parameter value is passed as keyName
to the getLookupMapName
method. If the keyName
is not found in the lookup map, it is logged using LOG.error
. Because the keyName
is not sanitized before being logged, an attacker can inject newline characters and forge log entries. This can be used to confuse log monitoring systems or hide other malicious activities. The vulnerable code is present in version 1.3.10 and older of struts-extras
. As the library is no longer maintained, there is no official patch for this vulnerability.
Vulnerable functions
org.apache.struts.actions.LookupDispatchAction.getLookupMapName
extras/src/main/java/org/apache/struts/actions/LookupDispatchAction.java
The 'keyName' variable, which is derived from a user-provided request parameter, is logged without any sanitization. An attacker can provide a malicious 'keyName' containing newline characters to inject fake log entries.