Summary
Apache Struts contains an asymmetric resource consumption (amplification) vulnerability (CWE-405). The issue occurs when a request parameter is bound to a java.math.BigDecimal property that is then rendered through the number tag or passed as an argument into a localized message, including the error message of a validator that rejects the value. In that case the framework can build a string many orders of magnitude larger than the request that produced it. The string is built on the server whether or not it is sent to the client.
According to the CVSS vector (7.5, High), the attack is carried out over the network with low complexity and requires no authentication and no user interaction. An attacker can exhaust server CPU and memory, causing denial of service. Confidentiality and integrity are not affected. The vulnerability is not listed in the CISA KEV catalog, and the EPSS exploitation probability is low (about 0.6%).
Affected versions are 2.5.12 through 2.5.33, 6.0.0 through 6.12.0, and 7.0.0 through 7.4.0. Applications that do not bind request parameters to BigDecimal properties, or that neither render them with the number tag nor pass them into localized messages, are not affected. Properties of other numeric types are not affected.
Who is affected
Organizations running web applications built on Apache Struts 2.5.12–2.5.33, 6.0.0–6.12.0 or 7.0.0–7.4.0 that bind request parameters to BigDecimal properties.
What to do
- Upgrade Apache Struts to version 6.13.0 or 7.5.0, which the vendor states fix the issue.
- For the 2.5.x branch, check the official advisory S2-085 (https://cwiki.apache.org/confluence/display/WW/S2-085), as no fixed version is listed for it.
- Inventory your applications and Struts versions, and identify which actions bind request parameters to BigDecimal properties.
- For those actions, check whether the values are rendered with the number tag or passed into localized messages, including validator error messages.
- Until you upgrade, monitor server CPU and memory usage and watch for unusual requests containing long numeric values.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
Weakness type (CWE)
- CWE-405 Asymmetric Resource Consumption (Amplification)
References
- cwiki.apache.org/confluence/display/WW/S2-085 vendor advisory
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.