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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
zwjjustdoit/CVE-2021-34371.jar ★ 32 · Sep 6, 2021
CVE-2021-34371.jar
-
tavgar/CVE-2021-34371 ★ 0 · Apr 21, 2025
python exploit - Neo4j 3.4.18 - RMI based Remote Code Execution (RCE)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.neo4j:neo4j | < 3.5.0 | 3.5.0 | GHSA-pc4w-8v5j-29w9 |