Apache Struts OGNL upload-parameter traversal
The legacy upload interceptor removed only filename parameters with an equal name, allowing an OGNL-qualified request parameter to survive and overwrite the action's trusted filename property.
- Product
- Apache Struts
- Vendor
- Apache Software Foundation
- Affected
- Struts 2.0.0 through 2.3.37, 2.5.0 through 2.5.33, and 6.0.0 through 6.3.0.2 when the legacy FileUploadInterceptor is used
- Fixed in
- Upgrade to 6.4.0 or later and migrate actions to ActionFileUploadInterceptor; Struts 7 removes the legacy interceptor
- Weakness
- CWE-915
- CVSS vector
- CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/S:N/AU:Y/R:A/V:C/RE:L/U:Red
- Published
- 11 Dec 2024
Classified as
References
Related CVEs
- CVE-2023-50164critical 9.82023
Apache Struts case-collision upload traversal
Case-sensitive HTTP parameter storage let trusted upload metadata and an attacker parameter coexist, while later property binding treated their names as equivalent.
- CVE-2021-42013critical 9.82021
Apache path traversal (incomplete fix of CVE-2021-41773)
The 2.4.50 fix for the 2.4.49 traversal only decoded one layer, so a double-encoded dot-segment slips past it and re-traverses.
- CVE-2021-41773critical 9.82021
Apache HTTP Server mixed-encoding path traversal
Apache 2.4.49 decoded and normalized a path in one pass, allowing a literal dot plus an encoded dot to evade parent-directory removal.
- CVE-2026-15410high 7.22026
SonicWall SMA1000 remove_hotfix path traversal to root execution
The privileged hotfix-removal workflow accepts traversal segments in a hotfix path, then marks the resolved file executable and runs it with Bash as root.