# CVE-2021-34371: Deserialization of Untrusted Data in Neo4j

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 35.3%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-05T19:35:05.000Z
- Modified: 2026-09-08T08:48:24.294Z
- Also known as: GHSA-pc4w-8v5j-29w9, BIT-NEO4J-2021-34371, BIT-NEO4J-ENTERPRISE-2021-34371
- Weaknesses: CWE-502
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- org.neo4j:neo4j (Maven): before 3.5.0
- neo4j neo4j: up to 3.4.18
- neo4j (Bitnami): before 3.4.19
- neo4j-enterprise (Bitnami): up to 3.4.18

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://www.exploit-db.com/exploits/50170> (exploit, advisory, third-party-advisory, vdb-entry, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-34371> (advisory, web)
- <https://github.com/neo4j/neo4j> (package)

## Sources

- CVE List: [CVE-2021-34371](https://www.cve.org/CVERecord?id=CVE-2021-34371), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-pc4w-8v5j-29w9](https://github.com/advisories/GHSA-pc4w-8v5j-29w9), CC-BY-4.0, modified 2026-08-26
- NVD: [CVE-2021-34371](https://nvd.nist.gov/vuln/detail/CVE-2021-34371), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-NEO4J-2021-34371](https://osv.dev/vulnerability/BIT-NEO4J-2021-34371), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-NEO4J-ENTERPRISE-2021-34371](https://osv.dev/vulnerability/BIT-NEO4J-ENTERPRISE-2021-34371), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-34371 · Whole record: https://cve.day/CVE-2021-34371.json · Rebuilt by cve.day 2026-11-25T22:58:03.017Z
