CVE-2026-133640
Patch Available.
This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.
Overview
Apache Struts is a popular open-source web application framework for developing Java EE web applications. Its type conversion layer turns request parameters into typed action properties and renders those properties back as text when a page displays them through the property tag or a form field.
A denial of service vulnerability (CVE-2026-133640) has been identified in the Apache Struts StringConverter, which allows attackers to make the server build and send a response many orders of magnitude larger than the request. Sustained low-volume traffic can exhaust server CPU and outbound network capacity. This issue remains after the earlier fix for CVE-2026-104712, which bounded only the fraction digits of a formatted decimal.
Per OWASP: The Denial of Service (DoS) attack is focused on making a resource (site, application, server) unavailable for the purpose it was designed.
This issue affects multiple versions of Apache Struts.
Details
Module Info
- Product: Apache Struts
- Affected packages:
org.apache.struts:struts2-core - Affected versions: >=2.5.12 <=2.5.33, >=6.0.0 <=6.12.0, >=7.0.0 <=7.4.0
- GitHub repository: https://github.com/apache/struts
- Published packages: https://central.sonatype.com/artifact/org.apache.struts/struts2-core
- Package manager: Maven
- Fixed in:
- OSS Apache Struts 6.13.0, 7.5.0
- NES for Apache Struts
Vulnerability Info
This Medium-severity vulnerability is found in the org.apache.struts:struts2-core package in multiple versions of Apache Struts. When an application binds a request parameter to a java.math.BigDecimal property and then renders that property as text, Struts converts the value with StringConverter.convertToString:
protected String convertToString(Locale locale, Object value) {
if (Number.class.isInstance(value)) {
NumberFormat format = NumberFormat.getNumberInstance(locale);
format.setGroupingUsed(false);
Object fixedValue = value;
if (BigDecimal.class.isInstance(value) || Double.class.isInstance(value) || Float.class.isInstance(value)) {
format.setMaximumFractionDigits(MAX_FRACTION_DIGITS);
...
}
return format.format(fixedValue);
}
...
}
The fraction side of the output is capped, but the integer side is not. DecimalFormat keeps its default maximum of Integer.MAX_VALUE integer digits and writes out every integer digit of the value in full. A BigDecimal parsed from a short string such as 1E+100000000 has a precision of one digit and a large negative scale, so formatting it produces a string of about one hundred million characters. The size of the output follows the scale of the value rather than the length of the request, so each small request makes the server allocate, build and transmit a very large response. Properties of other numeric types are not affected.
Mitigation
Only recent versions of Apache Struts are community-supported. Older lines are End-of-Life and will not receive any updates to address this issue.
Users of the affected components should apply one of the following mitigations:
- Upgrade affected applications to a supported version of Apache Struts.
- Leverage a commercial support partner like HeroDevs for post-EOL security support.
Credits
- Yu Deshui (finder)