# Apache Struts file upload logic is flawed

Advisory record · `GHSA-43mq-6xmg-29vm`

- **Identifiers:** `GHSA-43mq-6xmg-29vm` · `CVE-2024-53677`
- **State:** Confirmed
- **Severity:** CVSS 9.5 Critical
- **Critical:** Yes: CVSS 9+, CVSS 7+ and EPSS
- **Weakness (CWE):** [CWE-22](https://cwe.mitre.org/data/definitions/22.html) · [CWE-434](https://cwe.mitre.org/data/definitions/434.html) · [CWE-915](https://cwe.mitre.org/data/definitions/915.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md) · [Unrestricted file upload](https://agentprime.io/advisories/tag/file-upload.md) · [Broken access control](https://agentprime.io/advisories/tag/access-control.md)
- **Published:** 11 Dec 2024
- **Updated:** 15 Jul 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 11 Dec 2024, 18:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.5: 9.0 or more.
- CVSS score 9.5 (7.0 or more) and EPSS 0.72 (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 `<6.4.0`; fixed in `6.4.0`

## Machine-written summary

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

> Apache Struts 2 (package org.apache.struts:struts2-core, versions from 2.0.0 before 6.4.0) is vulnerable to flawed file upload logic. An attacker can manipulate file upload parameters to traverse paths and, under some circumstances, upload a malicious file that enables remote code execution. Upgrade to version 6.4.0 or later; applications not using the older FileUploadInterceptor-based upload logic are not affected.

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

- 9.5 Critical, CVSS 4.0: `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`, from CNA (apache)

- **CISA KEV:** Not listed.
- **EPSS:** 0.72, the 99th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 11 Dec 2024, 15:35 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2024-53677)
- 11 Dec 2024, 16:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-53677)
- 31 Oct 2026, 15:10 UTC: First seen by agentprime
- 31 Oct 2026, 15:10 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-43mq-6xmg-29vm)

## Sources

- [GitHub Advisory Database: GHSA-43mq-6xmg-29vm](https://github.com/advisories/GHSA-43mq-6xmg-29vm)
- [OSV: GHSA-43mq-6xmg-29vm](https://osv.dev/vulnerability/GHSA-43mq-6xmg-29vm)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-53677>
- <https://github.com/apache/struts/commit/1ecfbae46543a83e131404f8dcc84b3d0d554854>
- <https://github.com/apache/struts/commit/3ef9ade8902a63bb560892453eeca02bfddefc78>
- <https://github.com/apache/struts/commit/930fef7679d7247db9e460c146b1698a9d7ad1e4>
- <https://cwiki.apache.org/confluence/display/WW/S2-067>
- <https://github.com/apache/struts>
- <https://security.netapp.com/advisory/ntap-20250103-0005>
- <https://struts.apache.org/core-developers/file-upload>
- <https://www.dynatrace.com/news/blog/the-anatomy-of-broken-apache-struts-2-a-technical-deep-dive-into-cve-2024-53677>

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-43mq-6xmg-29vm>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-43mq-6xmg-29vm/>. Everything for agents: <https://agentprime.io/llms.txt>.
