Bulletin S2-085 is the third decimal-expansion bulletin in Struts this autumn, and the first whose cost is not bandwidth. 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, 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, allowing an unauthenticated remote attacker to exhaust server CPU and memory.” The validator case is the one to notice: the value does not have to pass validation to be expanded, it has to fail it. 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 either formats it with <s:number> or quotes it in a message, including a validation error, 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-133641 at a glance.
| Component | Apache Struts, struts2-core: the number tag’s formatting of a BigDecimal, and MessageFormat arguments in localised messages, which includes validator error messages and <s:text> with a bound decimal as a parameter. The property tag and form fields are the sibling bulletin S2-084’s path; the JSON and REST plugins and the other numeric types are not in the described path |
| Affected versions | Struts 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 |
| Fixed in | Struts 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-5836, pull request #2095 on main (merged 7 November 2026) and #2096 on the 6.x branch: the 340-integer-digit bound from S2-084’s fix is applied to the number tag and, through a new BoundedMessageFormat wrapper, to message arguments. No distribution packages Struts 2 |
| Severity | Apache: 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 in Received state and its JSON carried no metric on 1 December, so the 7.5 is in the CVE record only; no distribution rates it |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS 0.00626 (51st percentile) on 1 December 2026 |
| Who is exposed | Struts applications on an affected line that bind a request parameter to a BigDecimal property and then either format it with the number tag or pass it into a localised message. The bulletin singles out the validation error message, “the value {0} is out of range” and its kind, because the expansion happens on the failure path, and adds that where validation messages are kept in the session, the expanded string “persists for the session lifetime”. The attacker needs no account and little bandwidth; the cost is server CPU and heap. Applications that never bind to BigDecimal, or bind it but neither render it with the number tag nor quote it in a message, are not affected |
| Published | Apache bulletin S2-085 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
S2-076 in October bounded the fraction digits Struts writes when the property tag formats a BigDecimal; S2-084, published the same day as this bulletin, bounds the integer digits on that path. This bulletin is the other two places the same value is turned into text. The number tag formats through a NumberFormat of its own, and the fix’s pull request says its maximumIntegerDigits attribute was rejected for the same reason as before, so the bound had to go in front of the formatter. The second place is subtler: a bound value handed to getText() as a message argument goes through java.text.MessageFormat, which formats a BigDecimal argument in full, and the most common way an application does that without meaning to is a validator whose message template reads {0}. The attacker sends 1E+100000, validation fails as intended, the error message is built with the hundred-thousand-digit value in it, and if the application stores action errors in the session for a redirect, it stays there.
The fix on main is WW-5836 by Lukasz Lenart, merged 7 November 2026 and shipped in 7.5.0 and 6.13.0 on 20 November. It moves the digit-counting check into a shared BigDecimalBounds class, makes the number tag fall back to toString() for an over-bound value, and wraps message formatting in a BoundedMessageFormat that is used only when an argument exceeds the bound, so that an ordinary message pays nothing; the wrapper also handles choice elements with nested {n} patterns, which is where a naive bound would have missed. An over-bound value now renders as the 1E+340 form the pull request shows. The pull request records the core suite at 3,633 tests passing; the bulletin’s backward-compatibility note is the same as S2-084’s, that only decimals with very many integer digits change appearance.
The workaround is the one S2-084 gives, and the bulletin repeats its limits: an application-supplied BigDecimal converter in struts-conversion.properties (xwork-conversion.properties on 2.5.x) that rejects an excessive exponent at bind time; a render-time-bounding converter “does NOT cover this”, and a value in a JSON plugin request body does not pass through the converter at all. The pages on lists.apache.org render only a JavaScript shell to our reader, so the announcement text is from struts.apache.org’s announcement page. The credit on the bulletin is Arun Manni.
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.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted for this page; Alpine does not package Struts | — |
| Debian | NOT-FOR-US: “Apache software not packaged in Debian” | — |
| Ubuntu | Tracker unreachable on 1 December 2026 (client error on two attempts); Ubuntu does not package Struts 2 | — |
| RHEL, Rocky, Alma, CentOS Stream | No page read on 1 December 2026 (client error on two attempts); Red Hat does not ship Struts 2 | — |
| openSUSE/SLE | Not consulted for this page; SUSE does not ship Struts 2 | — |
Maven Central (org.apache.struts), application bundles, containers with a vendored war | The 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 page | 6.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, does the number tag or any message template quote it, and is the bind-time converter in place if the application cannot move yet. The message case needs the validator configuration read as well as the views, because the expansion happens in the error message of a rejected value.
# 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
grep -rnE 'BigDecimal\s+\w+\s*;|set\w+\s*\(\s*(java\.math\.)?BigDecimal\s' --include='*.java' /path/to/src | head
# 3a. the number tag over such a property
grep -rnE '<s:number\b' --include='*.jsp' --include='*.ftl' --include='*.vm' /path/to/src | head
# 3b. message templates that quote a value: validators with {0}, and getText()/<s:text> with a bound argument
grep -rnE '\{0\}|\{1\}' --include='*-validation.xml' --include='*.properties' /path/to/src | head
grep -rnE 'getText\([^)]*,\s*(new Object|Arrays\.asList|List\.of)' --include='*.java' /path/to/src | head
grep -rnE '@(DoubleRange|IntRange|Conversion|RegexField)Validator' --include='*.java' /path/to/src | headA 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 shown through <s:number> is the first path; a validator or message template whose text includes the submitted value as {0} is the second, and the range validators are the usual source, since their default messages quote the value that failed. An application that binds decimals but only ever renders them through the property tag is S2-084’s case, not this one, and the same releases fix both. There is no log line for this: the formatting succeeds, the request may even get a normal validation error back, and the sign is heap and CPU on the server rather than anything the client sees.
How to fix it
Move the application to a fixed Struts line, rebuild it and redeploy; 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; 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, the same one S2-084 names.
# 1. the converter (rejects an excessive exponent BEFORE the value is stored, so it never reaches a validator message)
# 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
# 3. if a conversion error message of your own quotes the raw input, keep {0} out of it, or the message is the amplifier againWhat not to do: do not fix this at the proxy. An outbound size cap or a rate limit on large responses is sized for S2-084, where the cost is the bytes sent; here the string is built whether or not it leaves the server, and a response to a rejected value is small. Do not bound at render time either, which is the S2-076 workaround and does not cover these two paths, as the bulletin says. 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. Note the third line: a conversion-error message of your own that quotes the raw input would rebuild the same string one step earlier.
Sources
- CVE-2026-133641 at CVE.org — the Apache CNA record (30 November 2026): the description with the validator case and “whether or not it is sent to the client”, 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-085 — Moderate, the number-tag and localised-message paths, the session-lifetime note, “S2-076 and S2-084 fixes do not cover these paths”, the bind-time converter workaround and its limits, the credit; last updated 20 November 2026
- 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
- Pull request #2095 (WW-5836, “Bound integer digits in number tag and message arguments”) — merged 7 November 2026 into main:
BigDecimalBounds, thenumbertag fallback,BoundedMessageFormatand its handling ofchoiceelements, the1E+340rendering; #2096 is the 6.x backport named on the 6.13.0 release and 7.5.0 release pages - NVD entry — Received, 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.00626 (percentile 0.514) on 1 December 2026
Related reading
- CVE-2026-133640: Apache Struts renders a BigDecimal parameter with every integer digit written out — S2-084, the same value through the property tag and form fields, fixed by the same releases
- CVE-2026-133637: Apache Struts Bean Validation message evaluated as an expression — S2-081, the other bulletin of the set that lives in validation messages
- CVE-2026-133639: Apache Struts Javatemplates plugin writes extra tag attributes into the page without escaping — S2-083, the same set
- CVE-2026-133643: Apache Struts doubleselect tag writes a value into the page script without script escaping — S2-087, the same set
- Hardening a service — rate limits and request-size caps at the proxy, the layer that absorbs an amplification before the application sees it
- Security advisories — every Linux-relevant CVE we track, newest first, with the component index
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.

