Skip to content
Heist/ feed
Back to feed
Critical

Apache Struts: Mixing setters for uploaded files and normal fields can allow bypass file upload checks

Type: advisorySources: OSV

File upload logic in Apache Struts is flawed. An attacker can manipulate file upload params to enable paths traversal and under some circumstances this can lead to uploading a malicious file which can be used to perform Remote Code Execution. This issue affects Apache Struts: from 2.0.0 before 6.4.0. Users are recommended to upgrade to version 6.4.0 at least and migrate to the new file upload mechanism https://struts.apache.org/core-developers/file-upload . If you are not using an old file upload logic based on FileuploadInterceptor your application is safe. You can find more details in https://cwiki.apache.org/confluence/display/WW/S2-067

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-53677
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 02:40 UTC · Revision 1

Source evidence

Apache Struts: Mixing setters for uploaded files and normal fields can allow bypass file upload checks

core-osv · Original source

Published 11 Dec 2024, 15:35 UTC

File upload logic in Apache Struts is flawed. An attacker can manipulate file upload params to enable paths traversal and under some circumstances this can lead to uploading a malicious file which can be used to perform Remote Code Execution. This issue affects Apache Struts: from 2.0.0 before 6.4.0. Users are recommended to upgrade to version 6.4.0 at least and migrate to the new file upload mechanism https://struts.apache.org/core-developers/file-upload . If you are not using an old file upload logic based on FileuploadInterceptor your application is safe. You can find more details in https://cwiki.apache.org/confluence/display/WW/S2-067

osv:CVE-2024-53677
Complete source record
{
  "id": "24a1752b2aa01100411ce9c74e8bf98d6e21b00fd1ca2189dbaeaa42a00670c4",
  "url": "https://osv.dev/vulnerability/CVE-2024-53677",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Apache Struts: Mixing setters for uploaded files and normal fields can allow bypass file upload checks",
    "summary": "File upload logic in Apache Struts is flawed. An attacker can manipulate file upload params to enable paths traversal and under some circumstances this can lead to uploading a malicious file which can be used to perform Remote Code Execution. This issue affects Apache Struts: from 2.0.0 before 6.4.0. Users are recommended to upgrade to version 6.4.0 at least and migrate to the new file upload mechanism https://struts.apache.org/core-developers/file-upload . If you are not using an old file upload logic based on FileuploadInterceptor your application is safe. You can find more details in https://cwiki.apache.org/confluence/display/WW/S2-067",
    "evidence": "osv:CVE-2024-53677",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2024-53677",
      "aliases": [
        "CVE-2024-53677",
        "GHSA-43mq-6xmg-29vm"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/apache/struts",
              "type": "GIT",
              "events": [
                {
                  "introduced": "2c0a197cea8fdc7d8cda5eeaa15a1c76507ac0a5"
                },
                {
                  "fixed": "9c5c80d1731a13af0dc80fc3a04700f9a15dcf2a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:apache:struts:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0"
                      },
                      {
                        "fixed": "6.4.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-53677.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.680967443Z",
      "provider": "osv",
      "references": [
        "https://repo.maven.apache.org/maven2",
        "https://cwiki.apache.org/confluence/display/WW/S2-067",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53677.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-53677",
        "https://security.netapp.com/advisory/ntap-20250103-0005/"
      ],
      "provider_metadata": {
        "cna_assigner": "apache",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.0.0"
                  },
                  {
                    "fixed": "6.4.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53677.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-53677",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499760,
  "published_at": "2024-12-11T15:35:43.389+00:00"
}