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

Advisory record · `GHSA-j77q-2qqg-6989`

- **Identifiers:** `GHSA-j77q-2qqg-6989` · `CVE-2017-5638`
- **State:** Confirmed
- **Severity:** CVSS 10.0 Critical
- **Critical:** Yes: KEV, CVSS 9+, CVSS 7+ and EPSS
- **Weakness (CWE):** [CWE-20](https://cwe.mitre.org/data/definitions/20.html) · [CWE-755](https://cwe.mitre.org/data/definitions/755.html)
- **Tags:** [CWE-20](https://agentprime.io/advisories/tag/cwe-20.md) · [CWE-755](https://agentprime.io/advisories/tag/cwe-755.md)
- **Published:** 18 Oct 2018
- **Updated:** 22 Oct 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 18 Oct 2018, 19:24 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- In CISA’s KEV catalogue since 3 Nov 2021: it is known to be exploited.
- CVSS score 10.0: 9.0 or more.
- CVSS score 10.0 (7.0 or more) and EPSS 1.00 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `org.apache.struts:struts2-core` (Maven): affected `>=2.3.0, <2.3.32 || >=2.5.0, <2.5.10.1`; fixed in `2.3.32`, `2.5.10.1`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Apache Struts2 core versions from 2.3.0 before 2.3.32 and from 2.5.0 before 2.5.10.1 are vulnerable. A remote attacker can send a crafted Content-Type, Content-Disposition, or Content-Length HTTP header during a file upload using the Jakarta Multipart parser and execute arbitrary commands on the server. Upgrade struts2-core to 2.3.32, 2.5.10.1, or a later release.

Written 7 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 10.0 Critical, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H`, from GitHub Advisory Database

- **CISA KEV:** Listed since 3 Nov 2021: known to be exploited. CISA reports use in ransomware campaigns.
- **EPSS:** 1.00, the 99th percentile, on 9 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:10 UTC: First seen by agentprime
- 31 Oct 2026, 15:10 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-j77q-2qqg-6989)

## Sources

- [GitHub Advisory Database: GHSA-j77q-2qqg-6989](https://github.com/advisories/GHSA-j77q-2qqg-6989)
- [OSV: GHSA-j77q-2qqg-6989](https://osv.dev/vulnerability/GHSA-j77q-2qqg-6989)
- <https://nvd.nist.gov/vuln/detail/CVE-2017-5638>
- <https://github.com/rapid7/metasploit-framework/issues/8064>
- <https://github.com/apache/struts/commit/b06dd50af2a3319dd896bf5c2f4972d2b772cf2b>
- <https://github.com/apache/struts/commit/352306493971e7d5a756d61780d57a76eb1f519a>
- <https://lists.apache.org/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c@%3Cannounce.apache.org%3E>
- <https://lists.apache.org/thread.html/r90890afea72a9571d666820b2fe5942a0a5f86be406fa31da3dd0922%40%3Cannounce.apache.org%3E>
- <https://lists.apache.org/thread.html/r90890afea72a9571d666820b2fe5942a0a5f86be406fa31da3dd0922@%3Cannounce.apache.org%3E>
- <https://nmap.org/nsedoc/scripts/http-vuln-cve2017-5638.html>
- <https://packetstormsecurity.com/files/141494/S2-45-poc.py.txt>
- <https://security.netapp.com/advisory/ntap-20170310-0001>
- <https://struts.apache.org/docs/s2-045.html>
- <https://struts.apache.org/docs/s2-046.html>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-j77q-2qqg-6989>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-j77q-2qqg-6989/>. Everything for agents: <https://agentprime.io/llms.txt>.
