CVE-2021-34371Neo4j
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · Neo4j · Neo4j We alert you by email or Slack (account required).
- Priority
- 77
- CVSS 3.1
- 9.8
- EPSS
- 35.3% probability of exploitation in 30 days · percentile 99
- Auth required
- No
- Published
- Aug 5, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Neo4j.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.neo4j:neo4j |
< 3.5.0 |
3.5.0 |
— |
Per OSV / GitHub Advisories (GHSA-pc4w-8v5j-29w9). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| neo4j | neo4j | ≤ 3.4.18 |
Official sources
References
Links published by the sources. Open them with care.
- www.exploit-db.com Exploit Third Party Advisory VDB Entry