{"answers":{"affected":"4 open source packages ship an affected version, including org.neo4j:neo4j, neo4j and neo4j-enterprise. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-34371 in the wild and no public exploit code.","fix":"Upgrade org.neo4j:neo4j to 3.5.0 or later.","what":"CVE-2021-34371 is a critical unsafe deserialization vulnerability in n/a, published on 5 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-34371 and fix it if it is affected.\n\nWhat it is: CVE-2021-34371 is a critical unsafe deserialization vulnerability in n/a, published on 5 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-34371 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.neo4j:neo4j (Maven): affected all versions; fixed in 3.5.0\n- org.neo4j:neo4j (Maven): affected all versions; fixed in 3.5.0\n- neo4j (Bitnami): affected all versions; fixed in 3.4.19\n- neo4j-enterprise (Bitnami): affected all versions up to 3.4.18; no fix listed\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-2021-34371/ (Markdown: https://insights.sbomify.com/CVE-2021-34371/index.md)","id":"CVE-2021-34371","markdown":"https://insights.sbomify.com/CVE-2021-34371/index.md","name":"CVE-2021-34371","record":{"aliases":["BIT-neo4j-2021-34371","BIT-neo4j-enterprise-2021-34371","GHSA-pc4w-8v5j-29w9"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Neo4j graph database","requires_auth":"none","summary":"Attackers can achieve remote code execution via unsafe Java deserialization in the Neo4j RMI service when the shell server is enabled.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"neo4j","vendor":"neo4j"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","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-502","name":"Deserialization of Untrusted Data"}],"description":"Neo4j through 3.4.18 (with the shell server enabled) exposes an RMI service that arbitrarily deserializes Java objects, e.g., through setSessionVariable. An attacker can abuse this for remote code execution because there are dependencies with exploitable gadget chains.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":"2021-09-06","github_poc":2,"max_poc_stars":32,"metasploit":0,"nuclei":0,"refs":[{"date":"2021-09-06T02:00:52Z","kind":"github_poc","ref":"https://github.com/zwjjustdoit/CVE-2021-34371.jar","stars":32,"title":"CVE-2021-34371.jar"},{"date":"2025-04-21T20:41:53Z","kind":"github_poc","ref":"https://github.com/tavgar/CVE-2021-34371","stars":0,"title":"python exploit - Neo4j 3.4.18 - RMI based Remote Code Execution (RCE)"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Deserialization of Untrusted Data in Neo4j","id":"CVE-2021-34371","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"deserialization","year":"2021"},"n_packages":4,"n_references":1,"next":{"headline":"Integer overflow in NVIDIA Jetson TX2 series, TX2 NX, AGX Xavier series, Xavier NX","id":"CVE-2021-34372"},"packages":[{"ecosystem":"Bitnami","fixed":["3.4.19"],"introduced":["0"],"last_affected":[],"package":"neo4j","purl":"pkg:bitnami/neo4j","source":"BIT-neo4j-2021-34371"},{"ecosystem":"Bitnami","fixed":[],"introduced":["0"],"last_affected":["3.4.18"],"package":"neo4j-enterprise","purl":"pkg:bitnami/neo4j-enterprise","source":"BIT-neo4j-enterprise-2021-34371"},{"ecosystem":"Maven","fixed":["3.5.0"],"introduced":["0"],"last_affected":[],"package":"org.neo4j:neo4j","purl":null,"source":"GHSA-pc4w-8v5j-29w9"},{"ecosystem":"Maven","fixed":["3.5.0"],"introduced":["0"],"last_affected":[],"package":"org.neo4j:neo4j","purl":"pkg:maven/org.neo4j/neo4j","source":"GHSA-pc4w-8v5j-29w9"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-34370"},"products":["n/a"],"published":"2021-08-05","related":[{"cvss_score":9.8,"headline":"Incorrect access control in Neo4j Enterprise Database Server via LDAP authentication","id":"CVE-2018-18389","kev_date_added":null,"published":"2018-10-16"},{"cvss_score":6.8,"headline":"Neo4J vulnerable to Cross-Site Request Forgery","id":"CVE-2013-7259","kev_date_added":null,"published":"2014-04-29"},{"cvss_score":6.5,"headline":"Neo4j Cypher component mishandles IMMUTABLE privileges","id":"CVE-2024-34517","kev_date_added":null,"published":"2024-05-07"},{"cvss_score":5.5,"headline":"Unathenticated connection can hold Bolt channel open","id":"CVE-2026-14587","kev_date_added":null,"published":"2026-08-05"},{"cvss_score":2.1,"headline":"Caching of authentication context","id":"CVE-2026-1471","kev_date_added":null,"published":"2026-03-11"},{"cvss_score":2.1,"headline":"Auth misconfiguration when multiple providers enabled","id":"CVE-2026-1524","kev_date_added":null,"published":"2026-03-11"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Attackers can achieve remote code execution via unsafe Java deserialization in the Neo4j RMI service when the shell server is enabled.","url":"https://insights.sbomify.com/CVE-2021-34371/"}