{"answers":{"affected":"4 open source packages ship an affected version, including org.elasticsearch:elasticsearch. It affects 2 products.","exploited":"Yes. Attackers have exploited CVE-2015-1427 in the wild since at least 25 Mar 2022.","fix":"Upgrade org.elasticsearch:elasticsearch to a fixed version for your release line: 1.3.8 or 1.4.3. US federal agencies must fix it by 15 Apr 2022.","what":"CVE-2015-1427 is a critical code injection vulnerability in Elastic Elasticsearch, published on 17 Feb 2015. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2015-1427 and fix it if it is affected.\n\nWhat it is: CVE-2015-1427 is a critical code injection vulnerability in Elastic Elasticsearch, published on 17 Feb 2015. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2015-1427 in the wild since at least 25 Mar 2022.\n\nAffected packages and fixed versions:\n- org.elasticsearch:elasticsearch (Maven): affected all versions; fixed in 1.3.8\n- org.elasticsearch:elasticsearch (Maven): affected all versions; fixed in 1.3.8\n- org.elasticsearch:elasticsearch (Maven): affected from 1.4.0; fixed in 1.4.3\n- org.elasticsearch:elasticsearch (Maven): affected from 1.4.0; fixed in 1.4.3\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-2015-1427/ (Markdown: https://insights.sbomify.com/CVE-2015-1427/index.md)","id":"CVE-2015-1427","markdown":"https://insights.sbomify.com/CVE-2015-1427/index.md","name":"CVE-2015-1427","record":{"aliases":["GHSA-w94p-6mhw-4qxw"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Elasticsearch search engine","requires_auth":"none","summary":"Remote attackers can execute arbitrary shell commands by bypassing the Groovy sandbox in Elasticsearch, requiring immediate upgrades.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"elasticsearch","vendor":"elastic"},{"product":"fuse","vendor":"redhat"}],"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":[],"description":"The Groovy scripting engine in Elasticsearch before 1.3.8 and 1.4.x before 1.4.3 allows remote attackers to bypass the sandbox protection mechanism and execute arbitrary shell commands via a crafted script.","ecosystems":["Maven"],"exploits":{"exploitdb":2,"first_seen":"2015-02-11","github_poc":6,"max_poc_stars":32,"metasploit":1,"nuclei":1,"refs":[{"date":"2017-01-09T20:08:56Z","kind":"github_poc","ref":"https://github.com/t0kx/exploit-CVE-2015-1427","stars":32,"title":"Elasticsearch 1.4.0 \u003c 1.4.2 Remote Code Execution exploit and vulnerable container"},{"date":"2015-02-11","kind":"metasploit","ref":"exploit/multi/elasticsearch/search_groovy_script","stars":null,"title":"ElasticSearch Search Groovy Sandbox Bypass"},{"date":"2015-03-11","kind":"exploitdb","ref":"36337","stars":null,"title":"ElasticSearch - Remote Code Execution"},{"date":"2015-03-16","kind":"exploitdb","ref":"36415","stars":null,"title":"ElasticSearch - Search Groovy Sandbox Bypass (Metasploit)"},{"date":"2019-01-06T21:18:13Z","kind":"github_poc","ref":"https://github.com/cved-sources/cve-2015-1427","stars":0,"title":"cve-2015-1427"},{"date":"2020-06-22T05:00:22Z","kind":"github_poc","ref":"https://github.com/cyberharsh/Groovy-scripting-engine-CVE-2015-1427","stars":0,"title":null},{"date":"2022-07-29T09:14:56Z","kind":"github_poc","ref":"https://github.com/xpgdgit/CVE-2015-1427","stars":0,"title":null},{"date":"2024-11-10T15:33:18Z","kind":"github_poc","ref":"https://github.com/Sebikea/CVE-2015-1427-for-trixie","stars":0,"title":"To test elasticsearch vulnerabillity on newer version of debian"}],"tier":"exploited"},"has_fix":true,"headline":"Elasticsearch Groovy Scripting Engine Remote Code Execution","id":"CVE-2015-1427","indexable":true,"kev":{"dateAdded":"2022-03-25","dueDate":"2022-04-15","knownRansomwareCampaignUse":"Unknown","product":"Elasticsearch","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Elastic","vulnerabilityName":"Elasticsearch Groovy Scripting Engine Remote Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":"Maven","product":"elastic:elasticsearch","products":["elastic:elasticsearch"],"type":"code_injection","year":"2015"},"n_packages":4,"n_references":8,"next":{"headline":"SQL injection in n/a","id":"CVE-2015-1428"},"packages":[{"ecosystem":"Maven","fixed":["1.3.8"],"introduced":["0"],"last_affected":[],"package":"org.elasticsearch:elasticsearch","purl":null,"source":"GHSA-w94p-6mhw-4qxw"},{"ecosystem":"Maven","fixed":["1.3.8"],"introduced":["0"],"last_affected":[],"package":"org.elasticsearch:elasticsearch","purl":"pkg:maven/org.elasticsearch/elasticsearch","source":"GHSA-w94p-6mhw-4qxw"},{"ecosystem":"Maven","fixed":["1.4.3"],"introduced":["1.4.0"],"last_affected":[],"package":"org.elasticsearch:elasticsearch","purl":null,"source":"GHSA-w94p-6mhw-4qxw"},{"ecosystem":"Maven","fixed":["1.4.3"],"introduced":["1.4.0"],"last_affected":[],"package":"org.elasticsearch:elasticsearch","purl":"pkg:maven/org.elasticsearch/elasticsearch","source":"GHSA-w94p-6mhw-4qxw"}],"prev":{"headline":"Puppet Labs Facter allows local users to obtain sensitive Amazon EC2 IAM instance metadata","id":"CVE-2015-1426"},"products":["n/a"],"published":"2015-02-17","related":[{"cvss_score":8.1,"headline":"Elasticsearch Remote Code Execution","id":"CVE-2014-3120","kev_date_added":"2022-03-25","published":"2014-07-28"},{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2015-5377","kev_date_added":null,"published":"2018-03-06"},{"cvss_score":8.8,"headline":"Deserialization of Untrusted Data in Elasticsearch Leading to Remote Code Execution","id":"CVE-2026-72649","kev_date_added":null,"published":"2026-09-01"},{"cvss_score":8.8,"headline":"Use of Out-of-range Pointer Offset in the Elasticsearch Machine Learning Native Inference Process","id":"CVE-2026-72642","kev_date_added":null,"published":"2026-08-13"},{"cvss_score":8.8,"headline":"Privilege Escalation Flaw in Elasticsearch","id":"CVE-2020-7014","kev_date_added":null,"published":"2020-06-03"},{"cvss_score":8.8,"headline":"Improper Privilege Management in Elasticsearch","id":"CVE-2020-7009","kev_date_added":null,"published":"2020-03-31"}],"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":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"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 shell commands by bypassing the Groovy sandbox in Elasticsearch, requiring immediate upgrades.","url":"https://insights.sbomify.com/CVE-2015-1427/"}