{"answers":{"affected":"4 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 8 products.","exploited":"Yes. Attackers have exploited CVE-2018-11776 in the wild since at least 3 Nov 2021.","fix":"Upgrade org.apache.struts:struts2-core to a fixed version for your release line: 2.3.35 or 2.5.17. US federal agencies must fix it by 3 May 2022.","what":"CVE-2018-11776 is a high-severity code injection vulnerability in Apache Struts, published on 22 Aug 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-11776 and fix it if it is affected.\n\nWhat it is: CVE-2018-11776 is a high-severity code injection vulnerability in Apache Struts, published on 22 Aug 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2018-11776 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.4; fixed in 2.3.35\n- org.apache.struts:struts2-core (Maven): affected from 2.0.4; fixed in 2.3.35\n- org.apache.struts:struts2-core (Maven): affected from 2.5; fixed in 2.5.17\n- org.apache.struts:struts2-core (Maven): affected from 2.5; fixed in 2.5.17\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-2018-11776/ (Markdown: https://insights.sbomify.com/CVE-2018-11776/index.md)","id":"CVE-2018-11776","markdown":"https://insights.sbomify.com/CVE-2018-11776/index.md","name":"CVE-2018-11776","record":{"aliases":["GHSA-cr6j-3jp9-rw65"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Java web framework","requires_auth":"none","summary":"Attackers can achieve remote code execution in Apache Struts when alwaysSelectFullNamespace is enabled and specific tag configurations are used.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"struts","vendor":"apache"},{"product":"active_iq_unified_manager","vendor":"netapp"},{"product":"oncommand_insight","vendor":"netapp"},{"product":"oncommand_workflow_automation","vendor":"netapp"},{"product":"snapcenter","vendor":"netapp"},{"product":"communications_policy_management","vendor":"oracle"},{"product":"enterprise_manager_base_platform","vendor":"oracle"},{"product":"mysql_enterprise_monitor","vendor":"oracle"}],"cvss":{"score":8.1,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"Apache Struts versions 2.3 to 2.3.34 and 2.5 to 2.5.16 suffer from possible Remote Code Execution when alwaysSelectFullNamespace is true (either by user or a plugin like Convention Plugin) and then: results are used with no namespace and in same time, its upper package have no or wildcard namespace and similar to results, same possibility when using url tag which doesn't have value and action set and in same time, its upper package have no or wildcard namespace.","ecosystems":["Maven"],"exploits":{"exploitdb":4,"first_seen":"2018-08-22","github_poc":17,"max_poc_stars":304,"metasploit":1,"nuclei":1,"refs":[{"date":"2018-08-25T01:53:30Z","kind":"github_poc","ref":"https://github.com/mazen160/struts-pwn_CVE-2018-11776","stars":304,"title":" An exploit for Apache Struts CVE-2018-11776"},{"date":"2018-08-24T11:53:02Z","kind":"github_poc","ref":"https://github.com/hook-s3c/CVE-2018-11776-Python-PoC","stars":123,"title":"Working Python test and PoC for CVE-2018-11776, includes Docker lab"},{"date":"2018-08-29T19:50:26Z","kind":"github_poc","ref":"https://github.com/649/Apache-Struts-Shodan-Exploit","stars":56,"title":"This tool takes advantage of CVE-2018-11776 and Shodan to perform mass exploitation of verified and vulnerable Apache Struts servers."},{"date":"2018-08-27T17:22:16Z","kind":"github_poc","ref":"https://github.com/Ekultek/Strutter","stars":21,"title":"Proof of Concept for CVE-2018-11776"},{"date":"2019-10-10T13:09:50Z","kind":"github_poc","ref":"https://github.com/arlyone/Apache-Struts-0Day-Exploit","stars":17,"title":"Critical Remote Code Execution Vulnerability (CVE-2018-11776) Found in Apache Struts."},{"date":"2018-08-28T23:48:14Z","kind":"github_poc","ref":"https://github.com/brianwrf/S2-057-CVE-2018-11776","stars":16,"title":"A simple exploit for Apache Struts RCE S2-057 (CVE-2018-11776)"},{"date":"2018-08-23T20:06:17Z","kind":"github_poc","ref":"https://github.com/xfox64x/CVE-2018-11776","stars":15,"title":"Creating a vulnerable environment and the PoC "},{"date":"2018-08-25T03:06:30Z","kind":"github_poc","ref":"https://github.com/bhdresh/CVE-2018-11776","stars":12,"title":"Vulnerable docker container for CVE-2018-11776"}],"tier":"exploited"},"has_fix":true,"headline":"Apache Struts Remote Code Execution","id":"CVE-2018-11776","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","netapp:active_iq_unified_manager","netapp:oncommand_insight","netapp:oncommand_workflow_automation","netapp:snapcenter","oracle:communications_policy_management","oracle:enterprise_manager_base_platform","oracle:mysql_enterprise_monitor"],"type":"code_injection","year":"2018"},"n_packages":4,"n_references":19,"next":{"headline":"Improper Authentication in hive:hive-exec","id":"CVE-2018-11777"},"packages":[{"ecosystem":"Maven","fixed":["2.3.35"],"introduced":["2.0.4"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":null,"source":"GHSA-cr6j-3jp9-rw65"},{"ecosystem":"Maven","fixed":["2.3.35"],"introduced":["2.0.4"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":"pkg:maven/org.apache.struts/struts2-core","source":"GHSA-cr6j-3jp9-rw65"},{"ecosystem":"Maven","fixed":["2.5.17"],"introduced":["2.5"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":null,"source":"GHSA-cr6j-3jp9-rw65"},{"ecosystem":"Maven","fixed":["2.5.17"],"introduced":["2.5"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":"pkg:maven/org.apache.struts/struts2-core","source":"GHSA-cr6j-3jp9-rw65"}],"prev":{"headline":"Improper Certificate Validation in Apache activemq-client","id":"CVE-2018-11775"},"products":["Apache Struts"],"published":"2018-08-22","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 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":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Apache Software Foundation"]},"summary":"Attackers can achieve remote code execution in Apache Struts when alwaysSelectFullNamespace is enabled and specific tag configurations are used.","url":"https://insights.sbomify.com/CVE-2018-11776/"}