{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 8 products.","exploited":"Yes. Attackers have exploited CVE-2020-17530 in the wild since at least 3 Nov 2021.","fix":"Upgrade org.apache.struts:struts2-core to 2.5.26 or later. US federal agencies must fix it by 3 May 2022.","what":"CVE-2020-17530 is a critical code injection vulnerability in Apache Struts, published on 11 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-17530 and fix it if it is affected.\n\nWhat it is: CVE-2020-17530 is a critical code injection vulnerability in Apache Struts, published on 11 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2020-17530 in the wild since at least 3 Nov 2021.\n\nAffected packages and fixed versions:\n- org.apache.struts:struts2-core (Maven): affected from 2.0.0; fixed in 2.5.26\n- org.apache.struts:struts2-core (Maven): affected from 2.0.0; fixed in 2.5.26\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-2020-17530/ (Markdown: https://insights.sbomify.com/CVE-2020-17530/index.md)","id":"CVE-2020-17530","markdown":"https://insights.sbomify.com/CVE-2020-17530/index.md","name":"CVE-2020-17530","record":{"aliases":["GHSA-jc35-q369-45pv"],"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":"Attackers can execute arbitrary code remotely by exploiting forced OGNL evaluation on raw user input in tag attributes.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"struts","vendor":"apache"},{"product":"business_intelligence","vendor":"oracle"},{"product":"communications_diameter_intelligence_hub","vendor":"oracle"},{"product":"communications_policy_management","vendor":"oracle"},{"product":"communications_pricing_design_center","vendor":"oracle"},{"product":"financial_services_data_integration_hub","vendor":"oracle"},{"product":"hospitality_opera_5","vendor":"oracle"},{"product":"mysql_enterprise_monitor","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-917","name":"Improper Neutralization of Special Elements used in an Expression Language Statement"}],"description":"Forced OGNL evaluation, when evaluated on raw user input in tag attributes, may lead to remote code execution. Affected software : Apache Struts 2.0.0 - Struts 2.5.25.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2020-09-14","github_poc":12,"max_poc_stars":64,"metasploit":1,"nuclei":1,"refs":[{"date":"2020-12-09T09:53:08Z","kind":"github_poc","ref":"https://github.com/ka1n4t/CVE-2020-17530","stars":64,"title":null},{"date":"2020-12-10T17:42:37Z","kind":"github_poc","ref":"https://github.com/wuzuowei/CVE-2020-17530","stars":45,"title":"S2-061 的payload，以及对应简单的PoC/Exp"},{"date":"2020-12-13T11:02:15Z","kind":"github_poc","ref":"https://github.com/Al1ex/CVE-2020-17530","stars":29,"title":"S2-061 CVE-2020-17530"},{"date":"2020-12-14T06:54:57Z","kind":"github_poc","ref":"https://github.com/fengziHK/CVE-2020-17530-strust2-061","stars":7,"title":"CVE-2020-17530-strust2-061"},{"date":"2021-01-07T14:24:08Z","kind":"github_poc","ref":"https://github.com/uzzzval/CVE-2020-17530","stars":5,"title":null},{"date":"2020-12-30T17:23:20Z","kind":"github_poc","ref":"https://github.com/CyborgSecurity/CVE-2020-17530","stars":4,"title":null},{"date":"2020-12-09T01:29:23Z","kind":"github_poc","ref":"https://github.com/secpool2000/CVE-2020-17530","stars":1,"title":"Apache Struts2框架是一个用于开发Java EE网络应用程序的Web框架。Apache Struts于2020年12月08日披露 S2-061 Struts 远程代码执行漏洞（CVE-2020-17530），在使用某些tag等情况下可能存在OGNL表达式注入漏洞，从而造成远程代码执行，风险极大。提醒我校Apache Struts用户尽快采取安全措施阻止漏洞攻击。"},{"date":"2020-09-14","kind":"metasploit","ref":"exploit/multi/http/struts2_multi_eval_ognl","stars":null,"title":"Apache Struts 2 Forced Multi OGNL Evaluation"}],"tier":"exploited"},"has_fix":true,"headline":"Apache Struts Remote Code Execution","id":"CVE-2020-17530","indexable":true,"kev":{"dateAdded":"2021-11-03","dueDate":"2022-05-03","knownRansomwareCampaignUse":"Unknown","product":"Struts","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Apache","vulnerabilityName":"Apache Struts Remote Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":"Maven","product":"apache:struts","products":["apache:struts","oracle:business_intelligence","oracle:communications_policy_management","oracle:mysql_enterprise_monitor"],"type":"code_injection","year":"2020"},"n_packages":2,"n_references":11,"next":{"headline":"Deserialization flaw in EOL Tapestry 4.","id":"CVE-2020-17531"},"packages":[{"ecosystem":"Maven","fixed":["2.5.26"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":null,"source":"GHSA-jc35-q369-45pv"},{"ecosystem":"Maven","fixed":["2.5.26"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":"pkg:maven/org.apache.struts/struts2-core","source":"GHSA-jc35-q369-45pv"}],"prev":{"headline":"Apache NuttX (incubating) Out of Bound Write from invalid fragmentation offset value specified in the IP header","id":"CVE-2020-17529"},"products":["Apache Struts"],"published":"2020-12-11","related":[{"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":"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Apache Software Foundation"]},"summary":"Attackers can execute arbitrary code remotely by exploiting forced OGNL evaluation on raw user input in tag attributes.","url":"https://insights.sbomify.com/CVE-2020-17530/"}