{"answers":{"affected":"2 open source packages ship an affected version, including org.elasticsearch:elasticsearch. It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2014-3120 in the wild since at least 25 Mar 2022.","fix":"Upgrade org.elasticsearch:elasticsearch to 1.4.0.Beta1 or later. US federal agencies must fix it by 15 Apr 2022.","what":"CVE-2014-3120 is a high-severity code injection vulnerability in Elastic Elasticsearch, published on 28 Jul 2014. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2014-3120 and fix it if it is affected.\n\nWhat it is: CVE-2014-3120 is a high-severity code injection vulnerability in Elastic Elasticsearch, published on 28 Jul 2014. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2014-3120 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.4.0.Beta1\n- org.elasticsearch:elasticsearch (Maven): affected all versions; fixed in 1.4.0.Beta1\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-2014-3120/ (Markdown: https://insights.sbomify.com/CVE-2014-3120/index.md)","id":"CVE-2014-3120","markdown":"https://insights.sbomify.com/CVE-2014-3120/index.md","name":"CVE-2014-3120","record":{"aliases":["GHSA-mrfm-jxgf-2h6v"],"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":"low_privilege","summary":"Remote attackers can execute arbitrary Java code via the search source parameter due to enabled dynamic scripting in default configurations.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"elasticsearch","vendor":"elastic"}],"cvss":{"score":8.1,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"description":"The default configuration in Elasticsearch before 1.2 enables dynamic scripting, which allows remote attackers to execute arbitrary MVEL expressions and Java code via the source parameter to _search.  NOTE: this only violates the vendor's intended security policy if the user does not run Elasticsearch in its own independent virtual machine.","ecosystems":["Maven"],"exploits":{"exploitdb":2,"first_seen":"2013-12-09","github_poc":5,"max_poc_stars":6,"metasploit":1,"nuclei":1,"refs":[{"date":"2014-07-07T20:28:34Z","kind":"github_poc","ref":"https://github.com/echohtp/ElasticSearch-CVE-2014-3120","stars":6,"title":"POC Code to exploite CVE-2014-3120"},{"date":"2013-12-09","kind":"metasploit","ref":"exploit/multi/elasticsearch/script_mvel_rce","stars":null,"title":"ElasticSearch Dynamic Script Arbitrary Java Execution"},{"date":"2014-05-13T16:37:29Z","kind":"github_poc","ref":"https://github.com/jeffgeiger/es_inject","stars":0,"title":"Demonstration of CVE-2014-3120"},{"date":"2014-05-15","kind":"exploitdb","ref":"33370","stars":null,"title":"ElasticSearch - Remote Code Execution"},{"date":"2014-05-30","kind":"exploitdb","ref":"33588","stars":null,"title":"ElasticSearch Dynamic Script - Arbitrary Java Execution (Metasploit)"},{"date":"2022-08-01T04:39:04Z","kind":"github_poc","ref":"https://github.com/xpgdgit/CVE-2014-3120","stars":0,"title":null},{"date":"2026-05-31T10:07:43Z","kind":"github_poc","ref":"https://github.com/Dungsocool/CVE-2014-3120","stars":0,"title":null},{"date":"2026-10-08T22:15:29Z","kind":"github_poc","ref":"https://github.com/CyberCTF/vulhub-elasticsearch-cve-2014-3120","stars":0,"title":"Vulhub elasticsearch/CVE-2014-3120: Elasticsearch MVEL Dynamic Script RCE (CVE-2014-3120), run with Isoloom"}],"tier":"exploited"},"has_fix":true,"headline":"Elasticsearch Remote Code Execution","id":"CVE-2014-3120","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 Remote Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":"Maven","product":"elastic:elasticsearch","products":["elastic:elasticsearch"],"type":"code_injection","year":"2014"},"n_packages":2,"n_references":8,"next":{"headline":"Command injection in n/a","id":"CVE-2014-3121"},"packages":[{"ecosystem":"Maven","fixed":["1.4.0.Beta1"],"introduced":["0"],"last_affected":[],"package":"org.elasticsearch:elasticsearch","purl":null,"source":"GHSA-mrfm-jxgf-2h6v"},{"ecosystem":"Maven","fixed":["1.4.0.Beta1"],"introduced":["0"],"last_affected":[],"package":"org.elasticsearch:elasticsearch","purl":"pkg:maven/org.elasticsearch/elasticsearch","source":"GHSA-mrfm-jxgf-2h6v"}],"prev":{"headline":"SQL injection in n/a","id":"CVE-2014-3119"},"products":["n/a"],"published":"2014-07-28","related":[{"cvss_score":9.8,"headline":"Elasticsearch Groovy Scripting Engine Remote Code Execution","id":"CVE-2015-1427","kev_date_added":"2022-03-25","published":"2015-02-17"},{"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":"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-22","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary Java code via the search source parameter due to enabled dynamic scripting in default configurations.","url":"https://insights.sbomify.com/CVE-2014-3120/"}