{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 4 products.","exploited":"Yes. Attackers have exploited CVE-2013-2251 in the wild since at least 25 Mar 2022.","fix":"Upgrade org.apache.struts:struts2-core to 2.3.15.1 or later. US federal agencies must fix it by 15 Apr 2022.","what":"CVE-2013-2251 is a critical code injection vulnerability in Apache Struts, published on 18 Jul 2013. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2013-2251 and fix it if it is affected.\n\nWhat it is: CVE-2013-2251 is a critical code injection vulnerability in Apache Struts, published on 18 Jul 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2013-2251 in the wild since at least 25 Mar 2022.\n\nAffected packages and fixed versions:\n- org.apache.struts:struts2-core (Maven): affected all versions; fixed in 2.3.15.1\n- org.apache.struts:struts2-core (Maven): affected all versions; fixed in 2.3.15.1\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-2013-2251/ (Markdown: https://insights.sbomify.com/CVE-2013-2251/index.md)","id":"CVE-2013-2251","markdown":"https://insights.sbomify.com/CVE-2013-2251/index.md","name":"CVE-2013-2251","record":{"aliases":["GHSA-47qp-8v9g-39hp"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Java web framework","requires_auth":"none","summary":"Remote attackers can execute arbitrary OGNL expressions via crafted parameters, leading to remote code execution in Apache Struts applications.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"archiva","vendor":"apache"},{"product":"struts","vendor":"apache"},{"product":"interstage_business_process_manager_analytics","vendor":"fujitsu"},{"product":"siebel_apps_-_e-billing","vendor":"oracle"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"Apache Struts 2.0.0 through 2.3.15 allows remote attackers to execute arbitrary OGNL expressions via a parameter with a crafted (1) action:, (2) redirect:, or (3) redirectAction: prefix.","ecosystems":["Maven"],"exploits":{"exploitdb":2,"first_seen":"2013-07-02","github_poc":1,"max_poc_stars":0,"metasploit":1,"nuclei":1,"refs":[{"date":"2013-07-02","kind":"metasploit","ref":"exploit/multi/http/struts_default_action_mapper","stars":null,"title":"Apache Struts 2 DefaultActionMapper Prefixes OGNL Code Execution"},{"date":"2013-07-27","kind":"exploitdb","ref":"27135","stars":null,"title":"Apache Struts 2 - DefaultActionMapper Prefixes OGNL Code Execution (Metasploit)"},{"date":"2014-01-14","kind":"exploitdb","ref":"44583","stars":null,"title":"Apache Struts2 2.0.0 \u003c 2.3.15 - Prefixed Parameters OGNL Injection"},{"date":"2023-08-04T02:52:03Z","kind":"github_poc","ref":"https://github.com/nth347/struts2-CVE-2013-2251","stars":0,"title":"Vulnerable environment of CVE-2013-2251 (S2-016) for testing"},{"date":null,"kind":"nuclei","ref":"http/cves/2013/CVE-2013-2251.yaml","stars":null,"title":"Apache Struts 2 - DefaultActionMapper Prefixes OGNL Code Execution"}],"tier":"exploited"},"has_fix":true,"headline":"Apache Struts Improper Input Validation","id":"CVE-2013-2251","indexable":true,"kev":{"dateAdded":"2022-03-25","dueDate":"2022-04-15","knownRansomwareCampaignUse":"Unknown","product":"Struts","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Apache","vulnerabilityName":"Apache Struts Improper Input Validation Vulnerability"},"kind":"cve","links":{"ecosystem":"Maven","product":"apache:struts","products":["apache:struts"],"type":"code_injection","year":"2013"},"n_packages":2,"n_references":16,"next":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2013-2252"},"packages":[{"ecosystem":"Maven","fixed":["2.3.15.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":null,"source":"GHSA-47qp-8v9g-39hp"},{"ecosystem":"Maven","fixed":["2.3.15.1"],"introduced":["0"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":"pkg:maven/org.apache.struts/struts2-core","source":"GHSA-47qp-8v9g-39hp"}],"prev":{"headline":"Code injection in n/a","id":"CVE-2013-2250"},"products":["n/a"],"published":"2013-07-18","related":[{"cvss_score":8.8,"headline":"Cross-site request forgery in n/a","id":"CVE-2016-4469","kev_date_added":null,"published":"2016-07-28"},{"cvss_score":8,"headline":"Apache Archiva vulnerable to Cross Site Request Forgery","id":"CVE-2017-5657","kev_date_added":null,"published":"2017-05-22"},{"cvss_score":7.5,"headline":"Apache Archiva: disabling user registration is not effective","id":"CVE-2024-27138","kev_date_added":null,"published":"2024-03-01"},{"cvss_score":7.5,"headline":"Apache Archiva: incorrect authentication potentially leading to account takeover","id":"CVE-2024-27139","kev_date_added":null,"published":"2024-03-01"},{"cvss_score":7.5,"headline":"Apache Archiva prior to 2.2.9 may allow the anonymous user to read arbitrary files","id":"CVE-2022-40308","kev_date_added":null,"published":"2022-11-15"},{"cvss_score":6.8,"headline":"Cross-site request forgery in n/a","id":"CVE-2011-1026","kev_date_added":null,"published":"2011-06-02"}],"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":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-22","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary OGNL expressions via crafted parameters, leading to remote code execution in Apache Struts applications.","url":"https://insights.sbomify.com/CVE-2013-2251/"}