Summary
A Cross-Site Request Forgery vulnerability (CWE-352) in Apache Struts. If an application uses the Execute and Wait Interceptor, a request to such an action can cause the Token Interceptor and Token Session Interceptor to accept a token the application never issued. A cross-site request can thereby defeat the CSRF protection these interceptors provide.
CVSS 3.1 score is 8.8 (High): the attack is network-based, low complexity and requires no attacker authentication, but does require user interaction (e.g. a logged-in user visiting a malicious page or link). A successful attack can have high impact on confidentiality, integrity and availability, as actions are performed on behalf of the victim.
Applications that do not use the Execute and Wait Interceptor, or do not rely on the Token Interceptor or Token Session Interceptor, are not affected. The vulnerability is not in the CISA KEV catalog; the EPSS exploitation probability is low (about 0.26%).
Who is affected
Organizations developing or running Apache Struts web applications (2.1.2–2.3.37, 2.5.0–2.5.33, 6.0.0–6.12.0, 7.0.0–7.4.0) that use the Execute and Wait Interceptor together with the Token or Token Session Interceptor.
What to do
- Upgrade Apache Struts to version 6.13.0 or 7.5.0, which fix the issue.
- No fix is listed for the 2.3.x and 2.5.x branches; plan migration to 6.13.0 or 7.5.0.
- Inventory Struts applications and review configuration (struts.xml, interceptor stacks) for use of execAndWait together with the token or tokenSession interceptor.
- Review the official security bulletin S2-082 (https://cwiki.apache.org/confluence/display/WW/S2-082) for further details.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-352 Cross-Site Request Forgery (CSRF)
References
- cwiki.apache.org/confluence/display/WW/S2-082 vendor advisory
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.