9.8critical
Deserialization of Untrusted Data in Neo4j
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 35.3% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-pc4w-8v5j-29w9BIT-NEO4J-2021-34371BIT-NEO4J-ENTERPRISE-2021-34371
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| org.neo4j:neo4j (Maven) | before 3.5.0 | GitHub Advisory Database |
| neo4j neo4j | up to 3.4.18 | NVD |
| neo4j (Bitnami) | before 3.4.19 | Bitnami Vulnerability Database |
| neo4j-enterprise (Bitnami) | up to 3.4.18 | Bitnami Vulnerability Database |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
NVD (es)
Neo4j versiones hasta 3.4.18 (con el servidor shell habilitado) expone un servicio RMI que deserializa arbitrariamente objetos Java, por ejemplo, mediante la función setSessionVariable. Un atacante puede abusar de esto para una ejecución de código remota porque se presenta dependencias con cadenas de gadgets explotables
References
| https://www.exploit-db.com/exploits/50170 | advisory, exploit, third-party-advisory, vdb-entry, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-34371 | advisory, web | |
| https://github.com/neo4j/neo4j | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-34371 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pc4w-8v5j-29w9 changed 2026-08-26 | CC-BY-4.0 |
| NVD | CVE-2021-34371 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-NEO4J-2021-34371 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-NEO4J-ENTERPRISE-2021-34371 changed 2026-09-08 | Apache-2.0 |