CVE-2026-133640

Denial of Service
Affects
Apache Struts
in
Apache Struts
No items found.
Versions
>=2.5.12 <=2.5.33, >=6.0.0 <=6.12.0, >=7.0.0 <=7.4.0

Patch Available.

Exclamation circle icon
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

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)
Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
Medium
ID
CVE-2026-133640
PROJECT Affected
Apache Struts
Versions Affected
>=2.5.12 <=2.5.33, >=6.0.0 <=6.12.0, >=7.0.0 <=7.4.0
NES Versions Affected
Published date
November 30, 2026
≈ Fix date
Category
Denial of Service
Vex Document
Download VEXHow do I use it?
Sign up for the latest vulnerability alerts fixed in
NES for Apache Struts
Rss feed icon
Subscribe via RSS
or

By submitting the form I acknowledge receipt of our Privacy Policy.

Thanks for signing up for our Newsletter! We look forward to connecting with you.
Oops! Something went wrong while submitting the form.