CVE-2021-34371
CRITICAL 9.8CVSS 3.1Deserialization of Untrusted Data in Neo4j
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.
- Published
- 5 Aug 2021
- Last modified
- 26 Aug 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- BIT-neo4j-2021-34371BIT-neo4j-enterprise-2021-34371GHSA-pc4w-8v5j-29w9
- Sources
- NVDJSONOSV GHSA-pc4w-8v5j-29w9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | neo4j | neo4jcpe:2.3:a:neo4j:neo4j:*:*:*:*:community:*:*:* |
<= 3.4.18 | |
| OSV | Maven | org.neo4j:neo4j | < 3.5.0 | 3.5.0 |
References
- https://www.exploit-db.com/exploits/50170 · Exploit, Third Party Advisory, VDB Entry, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-34371 · ADVISORY
- https://github.com/neo4j/neo4j · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 5 Aug 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Sep 2021)