CVE-2021-34371Neo4j Insecure Deserialization
Deserialization of Untrusted Data in Neo4j
Published Aug 5, 2021 · Updated Sep 8, 2026 · Also known as BIT-neo4j-2021-34371, BIT-neo4j-enterprise-2021-34371, GHSA-pc4w-8v5j-29w9
Key Facts
Patch immediately- CVE-2021-34371 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Neo4j, neo4j-enterprise (bitnami), org.neo4j:neo4j (maven).
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 35% probability of exploitation in the next 30 days.
- Fixed versions are available, including Neo4j 3.4.19, Neo4j <=3.4.18, org.neo4j:neo4j 3.5.0.
- Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Scores
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
35%
Higher than 98.4% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
41/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-34371
- advisoryGHSA advisory
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 Products
4 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| Neo4jNeo4j | See advisory | 3.4.18 |
| neo4j-enterprisebitnami | See advisory | n/a |
| org.neo4j:neo4jmaven | See advisory | 3.5.0 |
Patched Releases
Neo4j
3.4.19, <=3.4.18
org.neo4j:neo4j
3.5.0
Timeline
Publicly disclosed
Aug 5, 2021
Last updated
Sep 8, 2026
Weakness Type
- CWE-502 Deserialization of Untrusted Data
References
- advisorynvd.nist.gov · CVE-2021-34371
- advisoryGHSA advisory
- exploitExploitDB-50170
- othergithub.com · neo4j
FAQ
Common Questions.
Neo4j through 3.4.18 (with the shell server enabled) exposes an RMI service that arbitrarily deserializes Java objects, e.g., through setSessionVariable.
Affected: Neo4j; neo4j-enterprise (bitnami); org.neo4j:neo4j (maven). The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Neo4j 3.4.19, Neo4j <=3.4.18, org.neo4j:neo4j 3.5.0.
Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Is CVE-2021-34371 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo