Deserialization in Neo4j
CVE-2021-34371
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.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.134, 96.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- zwjjustdoit/CVE-2021-34371.jar (32 stars, last pushed 2021-09-06): CVE-2021-34371.jar
- tavgar/CVE-2021-34371 (last pushed 2025-04-21): python exploit - Neo4j 3.4.18 - RMI based Remote Code Execution (RCE)
Also mentioned in 13 other repositories (AdeliaNitzsche/Java-Deserialization-Cheat-Sheet, ARPSyndicate/cvemon, bakery312/Vulhub-Reproduce, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.exploit-db.com/exploits/50170 (Exploit, VDB Entry, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.