Summary
When deciding which action a request invokes, Apache Struts derives the path from the request as received, not from the path the servlet container has already decoded and normalised. The two paths can differ. As a result, the container, a filter or a reverse proxy may authorize a request under one path while Struts executes it as a different action. For the same reason, Struts may handle a request whose path matches struts.action.excludePattern.
Per the CVSS vector, the attack is carried out over the network with low complexity and requires no authentication or user interaction. The impact on confidentiality and integrity is high (CVSS 9.1, critical). An attacker can bypass URL-pattern access restrictions placed in front of Struts (security-constraint, URL-pattern filter, proxy rule) and reach protected actions.
Applications that enforce authorization inside Struts, e.g. with an interceptor on the action, are not affected by the bypass. The vulnerability is not in the CISA KEV catalog. The EPSS score is low (about 0.4%).
Who is affected
This affects organizations running Apache Struts 2.1.2–2.3.37, 2.5.0–2.5.33, 6.0.0–6.12.0 or 7.0.0–7.4.0, especially those restricting action access by URL pattern outside Struts.
What to do
- Upgrade Apache Struts to version 6.13.0 or 7.5.0, as recommended by the vendor.
- No fixed release is listed for the 2.3.x and 2.5.x branches. Check the official S2-086 advisory and plan migration to a supported branch.
- Inventory applications that restrict action access via security-constraint, URL filters or reverse proxy rules. These applications are exposed.
- Until you upgrade, consider enforcing authorization inside Struts, e.g. with an interceptor on the action. Such controls apply to the action that actually runs.
- Check whether you rely on struts.action.excludePattern, as that exclusion can also be bypassed.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- None
Weakness type (CWE)
- CWE-436 Interpretation Conflict
References
- cwiki.apache.org/confluence/display/WW/S2-086 vendor advisory
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.