CVE-2026-133640: Apache Struts renders a BigDecimal parameter with every integer digit written out, so a short request returns a page thousands of times larger

ByLinuxtastic

December 1, 2026 #Apache Struts, #CVE

Struts 6.12.0 and 7.4.0 fixed S2-076 (CVE-2026-104712), in which a request parameter bound to a java.math.BigDecimal property and rendered back into the page came out at a length set by the attacker. That fix bounded the fraction digits. Bulletin S2-084 says it “does not cover all affected values”: a decimal whose integer part is long, written in a few bytes with an exponent, is still padded out in full when the property tag or a form field formats it, and “the framework can still produce a response many orders of magnitude larger than the request, allowing an unauthenticated remote attacker to exhaust server CPU and outbound network capacity with sustained low-volume traffic”. Apache rates it Moderate; CISA’s ADP scores it 7.5. If an application on Struts 2.5.12 through 7.4.0 binds any request parameter to a BigDecimal and shows it back through <s:property> or a form field, rebuild it on Struts 6.13.0 or 7.5.0 (7.5.1 is current); on the end-of-life 2.5 line, register the bulletin’s bind-time converter.

CVE-2026-133640 at a glance.

ComponentApache Struts, struts2-core: the type-conversion layer’s formatting of BigDecimal values when the property tag or a form-field tag renders them (StringConverter, per the fix’s description). Rendering through the JSON and REST plugins, and the other numeric types (double, float, long, int), are not in the described path
Affected versionsStruts 2.5.12 through 2.5.33, 6.0.0 through 6.12.0 and 7.0.0 through 7.4.0, per the Apache CNA record and the bulletin; 2.5 is end of life and gets no fix. Struts 2.5.10.1 and earlier, including every 2.3.x, are not affected. The bulletin’s range starts two releases earlier than S2-076’s (2.5.14)
Fixed inStruts 7.5.0 and 6.13.0, both GA on 20 November 2026 and announced as security releases on 30 November 2026; 7.5.1 of 26 November is the current 7.x release and carries the fix. The change is WW-5828, pull request #2085 on main (merged 31 October 2026) and #2086 on the 6.x branch: the integer digit count of a BigDecimal is capped at 340 and anything larger falls back to BigDecimal.toString(), which is scientific notation. No distribution packages Struts 2
SeverityApache: Moderate (“Maximum security rating” on the bulletin); CISA ADP CVSS 3.1 7.5 High (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), CWE-405 (asymmetric resource consumption). NVD is Awaiting Analysis, and its JSON carried no metric at all on 1 December, so the 7.5 is in the CVE record only; no distribution rates it
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS 0.00397 (36th percentile) on 1 December 2026
Who is exposedStruts applications on an affected line that bind a request parameter to a BigDecimal property and render that property as text through <s:property> or a form field, which is the ordinary validation round trip for a money or quantity field. The attacker needs no account and little bandwidth; the cost lands on the server’s CPU and its outbound link. Applications that never bind to BigDecimal, or never render such a property as text, are not affected, and neither are responses produced by the JSON or REST plugin
PublishedApache bulletin S2-084 last updated 20 November 2026; announcement and CVE record 30 November 2026, EPSS first scored 1 December; this page built 1 December 2026, last updated 1 December 2026

What it is

A BigDecimal is an unscaled integer and a scale; 1E+100000 is nine bytes on the wire and one digit in the unscaled value, but when a formatter is told to write it out as a plain decimal it produces a one followed by a hundred thousand zeros. S2-076 arrived in October after the same trick with fraction digits, a large positive scale, and its fix (WW-5711, in 6.12.0 and 7.4.0) set maximumFractionDigits on the formatter so the fraction was rounded rather than written in full. The integer side had no equivalent bound, and the pull request for this bulletin says why not directly: setMaximumIntegerDigits was rejected “because DecimalFormat drops leading digits”, so a large negative scale was still “padded out in full so output length followed the scale, not precision”.

The fix on main, WW-5828 by Lukasz Lenart, merged 31 October 2026 and shipped three weeks later in 7.5.0 and 6.13.0, counts the integer digits as precision minus scale, as a long, and if that exceeds 340 it stops formatting and returns BigDecimal.toString(), which is the 1E+100000 the request sent. Double.MAX_VALUE, at 309 integer digits, still formats in full, so ordinary values look exactly as before; the bulletin’s backward-compatibility note is that “decimals with very many integer digits now render in scientific notation”. The trade-off the pull request records is that a value above the bound no longer round-trips through a form, because the parser rejects the E+ form on the way back in.

For the 2.5 line, and for anyone who cannot rebuild yet, the bulletin gives a bind-time workaround: an application-supplied BigDecimal type converter, registered in struts-conversion.properties at the classpath root (xwork-conversion.properties on 2.5.x), that rejects a value whose exponent is excessive before it is ever stored. The bulletin adds two limits worth reading twice: a converter that bounds the value at render time, which is what S2-076’s workaround did, “does NOT cover this”, and the converter does not reach values that arrive in a JSON plugin request body. The pages on lists.apache.org render only a JavaScript shell to our reader, so the announcement text here is from struts.apache.org’s announcement page, which lists this CVE among the nine bulletins of 30 November. The credit on the bulletin is Yu Deshui.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. Struts 2 is a Maven dependency and no distribution packages it, so the row that matters is the last one.

DistributionStatusFixed package
AlpineNot consulted for this page; Alpine does not package Struts—
DebianNOT-FOR-US: “Apache software not packaged in Debian”—
UbuntuTracker unreachable on 1 December 2026 (client error on two attempts); Ubuntu does not package Struts 2—
RHEL, Rocky, Alma, CentOS StreamNo page read on 1 December 2026 (client error on two attempts); Red Hat does not ship Struts 2—
openSUSE/SLENot consulted for this page; SUSE does not ship Struts 2—
Maven Central (org.apache.struts), application bundles, containers with a vendored warThe upstream release applies; every application on an affected line needs a rebuild. Release tags STRUTS_7_5_0 and STRUTS_6_13_0 were cut on 8 November 2026; GA is the 20 November date on the announcement page6.13.0 (6.x line) or 7.5.0 (7.x line; 7.5.1 is current)

How to check

Three questions after the version: is a BigDecimal bound anywhere, is it shown back through the property tag or a form field, and is the bind-time converter in place if the application cannot move yet. The first two are the bulletin’s own conditions; an application with no BigDecimal in its actions and models is not in the path whatever Struts version it runs.

# 1. the Struts jars an application actually loads (6.13.0 / 7.5.0 and later are fixed; 2.5.x is end of life)
for p in $(pgrep -x java); do tr '\0' '\n' < /proc/$p/cmdline | grep -oE '[^:]*struts2?-[a-z-]+-[0-9][^:]*\.jar' | sed "s/^/pid $p: /"; done
find / -name 'struts2-core-*.jar' 2>/dev/null | grep -vE '/\.m2/' | sort -u
for w in /opt/*/*.war /opt/*/webapps/*.war /var/lib/tomcat*/webapps/*.war; do unzip -l "$w" 2>/dev/null | grep -oE 'struts2-[a-z-]+-[0-9][^ ]*\.jar' | sed "s|^|$w: |"; done 2>/dev/null

# 2. does the application bind request parameters to BigDecimal properties (action classes and model beans)
grep -rnE 'BigDecimal\s+\w+\s*;|set\w+\s*\(\s*(java\.math\.)?BigDecimal\s' --include='*.java' /path/to/src | head
# in a built war, the same question against the compiled classes
unzip -p /path/to/app.war 'WEB-INF/classes/*.class' 2>/dev/null | strings | grep -c 'java/math/BigDecimal'

# 3. is such a property rendered through the property tag or a form field (the S2-084 path)
grep -rnE '<s:(property|textfield|hidden|password|textarea)\b' --include='*.jsp' --include='*.ftl' --include='*.vm' /path/to/src | head

A jar at 6.13.0 or 7.5.0 and later is fixed; 2.5.x and 2.3.x are end of life, and only 2.5.12 and later of those are affected. A BigDecimal property that is bound from a request and then rendered through <s:property> or a text field is the S2-084 path; one that is only rendered through the number tag or quoted in a validation message is the sibling bulletin’s, S2-085, which the same releases fix. A struts-conversion.properties that maps java.math.BigDecimal to the application’s own converter is the workaround in place, provided that converter rejects at bind time rather than rounding at render time.

# access log: requests whose decimal parameters carry a large exponent, and responses far larger than the request
grep -E '([=%][0-9.]+[eE]%2B?[0-9]{3,})' /var/log/tomcat*/localhost_access_log.*.txt | head
awk '$NF ~ /^[0-9]+$/ && $NF > 10000000 {print}' /var/log/tomcat*/localhost_access_log.*.txt | head
# the JVM: a worker thread pinned in formatting is CPU, not a stack trace, so look at thread CPU rather than catalina.out
top -H -p "$(pgrep -x java | head -1)" -n 1 | head -20

A request parameter carrying an exponent in the thousands, or a run of responses whose byte count is far out of proportion to the request, is the amplification being tried; there is no exception to find, because the formatting succeeds. The CPU view is the better tell during an attack: a handful of worker threads at full CPU on a server whose request rate has not changed. A hit means the application has a bound BigDecimal that the attacker found, and the fix is the upgrade or the converter, not a web-server rule, since the parameter can arrive under any name.

How to fix it

Move the application to a fixed Struts line, rebuild it and redeploy; this is a library change, not a configuration change, and the running application keeps the old jar until it is restarted with the new one. Struts 6.13.0 keeps the Java 8 and Servlet 3.1 baseline, so a 6.x application moves without a platform change; 7.5.0 needs Java 17 and Jakarta EE.

# Maven: move the whole org.apache.struts group to the fixed line, then rebuild and redeploy
#   <struts2.version>6.13.0</struts2.version>      (Java 8, Servlet 3.1 line)
#   <struts2.version>7.5.1</struts2.version>       (Java 17, Jakarta EE line; 7.5.0 is the first fixed release)
mvn versions:set-property -Dproperty=struts2.version -DnewVersion=6.13.0 && mvn -U clean package
# Gradle
sed -i 's/org.apache.struts:struts2-core:[0-9.]*/org.apache.struts:struts2-core:6.13.0/' build.gradle && ./gradlew clean build
# confirm what the deployed application now loads, then restart it
unzip -l target/*.war | grep -oE 'struts2-core-[0-9.]+\.jar'
systemctl restart tomcat
# Workaround from the bulletin, for 2.5.x or until the rebuild: a bind-time BigDecimal converter.
# 1. the converter (rejects an excessive exponent BEFORE the value is stored; the threshold is yours to pick)
#    public class BoundedBigDecimalConverter extends StrutsTypeConverter {
#      public Object convertFromString(Map ctx, String[] v, Class to) {
#        BigDecimal d = new BigDecimal(v[0]);
#        if (Math.abs(d.scale()) > 1000 || d.precision() > 1000) throw new TypeConversionException("decimal out of range");
#        return d;
#      }
#      public String convertToString(Map ctx, Object o) { return o.toString(); }
#    }
# 2. register it at the classpath root (WEB-INF/classes); on 2.5.x the file is xwork-conversion.properties
echo 'java.math.BigDecimal=com.example.BoundedBigDecimalConverter' >> src/main/resources/struts-conversion.properties

Two things not to do. Do not rely on a converter that rounds or truncates at render time: that is the S2-076 workaround, and the bulletin says in so many words that it “does NOT cover this”, because the integer digits are the problem here and the bind-time rejection is what stops them. And do not treat a bandwidth cap at the proxy as the fix: it limits the outbound cost but the server still spends the CPU to build the string, and the sibling bulletin S2-085 shows the same value being built even when it is never sent. The converter above is our restatement of the bulletin’s advice, not Apache’s code, and it does not see values that arrive in a JSON plugin request body, which the bulletin also says.

Sources

  • CVE-2026-133640 at CVE.org — the Apache CNA record (30 November 2026): the description, the three affected ranges, “upgrade to version 6.13.0 or 7.5.0”, CWE-405, and the CISA ADP’s CVSS 3.1 7.5 added 1 December
  • Apache Struts bulletin S2-084 — Moderate, the property-tag and form-field path, the backward-compatibility note, the bind-time converter workaround and its two limits, the credit; last updated 20 November 2026. S2-076 is the original bulletin for CVE-2026-104712, whose fix bounded fraction digits only
  • Struts announcements — 7.5.0 and 6.13.0 GA on 20 November 2026, 7.5.1 on 26 November, and the nine security announcements of 30 November 2026 including this one; downloads offer 7.5.1 and 6.13.0 and say unlisted versions get no further security patches
  • Pull request #2085 (WW-5828, “Bound integer digits when formatting BigDecimal”) — merged 31 October 2026 into main, the 340-digit cap, the toString() fallback, why setMaximumIntegerDigits was rejected, the round-trip trade-off; #2086 is the 6.x backport named on the 6.13.0 release and 7.5.0 release pages
  • NVD entry — Awaiting Analysis, published 30 November 2026, CWE-405 from Apache, no CVSS metric in the JSON on 1 December
  • Distribution trackers: Debian (NOT-FOR-US); Ubuntu and Red Hat pages not reachable from here on 1 December (client errors)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00397 (percentile 0.360) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.