CriticalGHSA-j77q-2qqg-6989CVE-2017-5638

Apache Struts vulnerable to remote arbitrary command execution due to improper input validation

Published 18 Oct 2018 · Updated 22 Oct 2025

Is your project on an affected org.apache.struts:struts2-core?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=2.3.0 <2.3.32
Fixed in
2.3.32
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.struts:struts2-core -DdepVersion=2.3.32 -DforceVersion=true
Affected
>=2.5.0 <2.5.10.1
Fixed in
2.5.10.1
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.apache.struts:struts2-core -DdepVersion=2.5.10.1 -DforceVersion=true

Details

Apache Struts versions prior to 2.3.32 and 2.5.10.1 contain incorrect exception handling and error-message generation during file-upload attempts using the Jakarta Multipart parser, which allows remote attackers to execute arbitrary commands via a crafted Content-Type, Content-Disposition, or Content-Length HTTP header, as exploited in the wild in March 2017 with a Content-Type header containing a #cmd= string.

Is GHSA-j77q-2qqg-6989 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.struts:struts2-core, and gives you the command that fixes it.

More advisories for org.apache.struts:struts2-core

  • HighCVE-2025-68493Apache Struts 2 is Missing XML Validation · 11 Jan 2026
  • HighCVE-2025-66675Apache Struts has a Denial of Service vulnerability · 10 Dec 2025
  • HighCVE-2025-64775Apache Struts is Vulnerable to DoS via File Leak · 1 Dec 2025
  • CriticalCVE-2024-53677Apache Struts file upload logic is flawed · 11 Dec 2024
  • CriticalCVE-2023-50164Apache Struts vulnerable to path traversal · 7 Dec 2023
  • HighCVE-2023-41835Apache Struts Improper Control of Dynamically-Managed Code Resources vulnerability · 5 Dec 2023
All 60 advisories for org.apache.struts:struts2-core

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.