CVE-2026-133641
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 number tag formats numeric values for display, and its text providers build localized messages, including validation error messages, by passing arguments through java.text.MessageFormat.
A denial of service (DoS) vulnerability (CVE-2026-133641) has been identified in the Apache Struts number tag and localized message formatting, which allows unauthenticated remote attackers to exhaust server CPU and memory. A short request parameter bound to a java.math.BigDecimal property can make the server build a string many orders of magnitude larger than the request, whether or not that string is ever sent to the client.
Per OWASP: The Denial of Service (DoS) attack is focused on making a resource (site, application, server) unavailable for the purpose it was designed. There are many ways to make a service unavailable for legitimate users by manipulating network packets, programming, logical, or resources handling vulnerabilities, among others.
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. A BigDecimal stores a value as an unscaled integer and a scale, so a request parameter such as 1E+100000000 converts to a tiny object whose value has a hundred million integer digits. Struts formats such values with java.text.DecimalFormat and java.text.MessageFormat, which do not limit the number of integer digits they write out, so every digit is materialized in memory.
The number tag formats the bound value directly in org.apache.struts2.components.Number:
public boolean end(Writer writer, String body) {
java.lang.Number number = findNumberName();
if (number != null) {
NumberFormat format = getNumberFormat();
findCurrency(format);
setNumberFormatParameters(format);
setRoundingMode(format);
String msg = format.format(number);
Localized messages pass their arguments through MessageFormat, both in com.opensymphony.xwork2.DefaultTextProvider.getText (return format.format(params);) and in com.opensymphony.xwork2.util.AbstractLocalizedTextProvider:
protected String formatWithNullDetection(MessageFormat mf, Object[] args) {
String message = mf.format(args);
if ("null".equals(message)) {
return null;
} else {
return message;
}
}
When an action binds a request parameter to a BigDecimal property and the application renders it with the number tag, or passes it as an argument to a localized message (for example the error message of a validator that rejects the value), an attacker can send a few bytes and force the server to allocate and fill a string of hundreds of megabytes. Repeated requests exhaust CPU and heap. 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, and 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
- Arun Manni (finder)