KeygraphLabs · CVE MCP

CVE-2017-5638 · apache

CVE-2017-5638

The Jakarta Multipart parser in Apache Struts 2 2.3.x before 2.3.32 and 2.5.x before 2.5.10.1 has incorrect exception handling and error-message generation during file-upload attempts, 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.

Published 2017-03-11, last changed 2026-06-17. Weakness: CWE-755.

CVSS
9.8
critical, from NVD
EPSS
100.0%
percentile 100.0%, chance of exploitation in 30 days
Exploitation
In CISA KEV
exploited in the wild, added 2021-11-03

CISA KEV

Apache Struts Remote Code Execution Vulnerability. Added 2021-11-03, federal due date 2022-05-03, ransomware use: Known.

Public exploits

SourceKindReference
exploit-dbproof-of-conceptEDB-41570
exploit-dbproof-of-conceptEDB-41614
metasploitexploit-moduleexploit/multi/http/struts2_content_type_ognl
nucleiscan-templateCVE-2017-5638

How to fix

Upgrade to a fixed version: org.apache.struts:struts2-core 2.3.32, 2.5.10.1 (Maven) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in apache/struts by b06dd50af2, 3523064939, 1ed29d508f. Functions changed by the fix: intercept, buildErrorMessage. Regression tests: core/src/test/java/org/apache/struts2/interceptor/FileUploadInterceptorTest.java. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).

Timeline

2017-03-11Published
2018-10-18Package advisory GHSA-j77q-2qqg-6989
2021-11-03Added to CISA KEV: exploited in the wild
2022-05-03CISA KEV due date for US federal agencies
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 100.0%
2026-12-01Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-j77q-2qqg-6989org.apache.struts:struts2-core (Maven)2.3.32
GHSA-j77q-2qqg-6989org.apache.struts:struts2-core (Maven)2.5.10.1

Also known as: GHSA-j77q-2qqg-6989

Related

CVEPublishedCVSSSummary
CVE-2025-684932026-01-118.1Apache Struts, Apache Struts: XXE vulnerability in outdated XWork component
CVE-2025-666752025-12-108.2Apache Struts: File leak in multipart request processing causes disk exhaustion (DoS) - version ranges fixed
CVE-2025-647752025-12-017.5Apache Struts: File leak in multipart request processing causes disk exhaustion (DoS)
CVE-2024-536772024-12-119.8Apache Struts: Mixing setters for uploaded files and normal fields can allow bypass file upload checks
CVE-2023-501642023-12-079.8Apache Struts: File upload component had a directory traversal vulnerability
CVE-2023-418352023-12-057.5Apache Struts: excessive disk usage
CVE-2023-343962023-06-147.5Apache Struts: DoS via OOM owing to no sanity limit on normal form fields in multipart forms
CVE-2023-341492023-06-146.5Apache Struts: DoS via OOM owing to not properly checking of list bounds

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2017-5638, or call /api/v1/vulnerabilities/CVE-2017-5638. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org