{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53677 exists.","fix":"Upgrade org.apache.struts:struts2-core to 6.4.0 or later.","what":"CVE-2024-53677 is a critical vulnerability in Apache Struts, published on 11 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-53677 and fix it if it is affected.\n\nWhat it is: CVE-2024-53677 is a critical vulnerability in Apache Struts, published on 11 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53677 exists.\n\nAffected packages and fixed versions:\n- org.apache.struts:struts2-core (Maven): affected all versions; fixed in 6.4.0\n- org.apache.struts:struts2-core (Maven): affected all versions; fixed in 6.4.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-53677/ (Markdown: https://insights.sbomify.com/CVE-2024-53677/index.md)","id":"CVE-2024-53677","markdown":"https://insights.sbomify.com/CVE-2024-53677/index.md","name":"CVE-2024-53677","record":{"aliases":["CLSA-2025-1754006617","GHSA-43mq-6xmg-29vm"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Java web framework","requires_auth":"none","summary":"Attackers can bypass file upload checks to upload malicious files and execute remote code in applications using legacy Struts file upload logic.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"struts","vendor":"apache"}],"cvss":{"score":9.5,"severity":"critical","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"description":"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.\n\nThis issue affects Apache Struts: from 2.0.0 before 6.4.0.\n\nUsers 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.\n\nYou can find more details in  https://cwiki.apache.org/confluence/display/WW/S2-067","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2024-12-12","github_poc":18,"max_poc_stars":96,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-12-13T17:42:55Z","kind":"github_poc","ref":"https://github.com/TAM-K592/CVE-2024-53677-S2-067","stars":96,"title":"A critical vulnerability, CVE-2024-53677, has been identified in the popular Apache Struts framework, potentially allowing attackers to execute arbitrary code remotely. This vulnerability arises from flaws in the file upload logic, which can be exploited to perform path traversal and malicious file uploads."},{"date":"2025-01-03T02:30:53Z","kind":"github_poc","ref":"https://github.com/EQSTLab/CVE-2024-53677","stars":17,"title":"File upload logic flaw in Apache Struts2 exploit"},{"date":"2024-12-12T08:30:14Z","kind":"github_poc","ref":"https://github.com/cloudwafs/s2-067-CVE-2024-53677","stars":9,"title":"s2-067(CVE-2024-53677)"},{"date":"2024-12-17T02:22:38Z","kind":"github_poc","ref":"https://github.com/yangyanglo/CVE-2024-53677","stars":3,"title":null},{"date":"2024-12-17T06:42:16Z","kind":"github_poc","ref":"https://github.com/c4oocO/CVE-2024-53677-Docker","stars":3,"title":"A Docker-based environment to reproduce the CVE-2024-53677 vulnerability in Apache Struts 2. "},{"date":"2025-01-10T17:47:24Z","kind":"github_poc","ref":"https://github.com/SeanRickerd/CVE-2024-53677","stars":3,"title":"Vulnerable Environment and Exploit for CVE-2024-53677"},{"date":"2025-02-24T12:28:28Z","kind":"github_poc","ref":"https://github.com/shishirghimir/CVE-2024-53677-Exploit","stars":3,"title":null},{"date":"2024-12-18T18:42:34Z","kind":"github_poc","ref":"https://github.com/dustblessnotdust/CVE-2024-53677-S2-067-thread","stars":2,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Apache Struts: Mixing setters for uploaded files and normal fields can allow bypass file upload checks","id":"CVE-2024-53677","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"apache:struts","products":["apache:struts"],"type":"file_upload","year":"2024"},"n_packages":2,"n_references":1,"next":{"headline":"Apache VCL: SQL injection vulnerability in New Block Allocation form","id":"CVE-2024-53678"},"packages":[{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":null,"source":"GHSA-43mq-6xmg-29vm"},{"ecosystem":"Maven","fixed":["6.4.0"],"introduced":["0"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":"pkg:maven/org.apache.struts/struts2-core","source":"GHSA-43mq-6xmg-29vm"}],"prev":{"headline":"Path traversal in HPE Insight Remote Support","id":"CVE-2024-53676"},"products":["Apache Struts"],"published":"2024-12-11","related":[{"cvss_score":9.8,"headline":"Apache Struts Remote Code Execution","id":"CVE-2020-17530","kev_date_added":"2021-11-03","published":"2020-12-11"},{"cvss_score":9.8,"headline":"Apache Struts 1 Improper Input Validation","id":"CVE-2017-9791","kev_date_added":"2022-02-10","published":"2017-07-10"},{"cvss_score":9.8,"headline":"Apache Struts Remote Code Execution","id":"CVE-2017-5638","kev_date_added":"2021-11-03","published":"2017-03-11"},{"cvss_score":9.8,"headline":"Apache Struts 2 Improper Input Validation","id":"CVE-2012-0391","kev_date_added":"2022-01-21","published":"2012-01-08"},{"cvss_score":8.1,"headline":"Apache Struts Remote Code Execution","id":"CVE-2018-11776","kev_date_added":"2021-11-03","published":"2018-08-22"},{"cvss_score":8.1,"headline":"Apache Struts Deserialization of Untrusted Data","id":"CVE-2017-9805","kev_date_added":"2021-11-03","published":"2017-09-15"},{"cvss_score":8.1,"headline":"Apache Struts Command Injection","id":"CVE-2016-3081","kev_date_added":"2026-10-08","published":"2016-04-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-03","vendors":["Apache Software Foundation"]},"summary":"Attackers can bypass file upload checks to upload malicious files and execute remote code in applications using legacy Struts file upload logic.","url":"https://insights.sbomify.com/CVE-2024-53677/"}