Every CVE Search/ Get API key

CVE-2021-34371

Deserialization of Untrusted Data in Neo4j

9.8 CriticalPublic exploitFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

13.4%Up 12.5 points since Aug 6, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2021-34371
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-502
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-34371
Updated
2026-11-02
EUVDEUVD-2021-2097 No score

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.

Record
EUVD-2021-2097
Updated
2026-11-03
GitHub AdvisoriesGHSA-pc4w-8v5j-29w9 9.8

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

Record
GHSA-pc4w-8v5j-29w9
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-502
Updated
2026-11-02
OSVGHSA-pc4w-8v5j-29w9 9.8

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

Record
GHSA-pc4w-8v5j-29w9
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-502
Updated
2026-11-02
OSVBIT-neo4j-2021-34371 No score

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.

Record
BIT-neo4j-2021-34371
Updated
2026-11-02
OSVBIT-neo4j-enterprise-2021-34371 No score

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.

Record
BIT-neo4j-enterprise-2021-34371
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
org.neo4j:neo4j
Maven
before 3.5.0
3.5.0
neo4j
Bitnami
before 3.4.19
3.4.19
neo4j-enterprise
Bitnami
through 3.4.18 None known
org.neo4j:neo4j
Maven
before 3.5.0, plus listed versions
1.21.2.M011.2.M021.2.M031.2.M04
Show 45 moreShow less
1.2.M051.2.M061.31.3.M011.3.M021.3.M031.3.M041.3.M051.41.4.11.4.21.4.M011.4.M021.4.M031.4.M041.4.M051.4.M061.51.5.11.5.21.5.31.5.M011.5.M021.61.6.11.6.21.6.31.6.M011.6.M021.6.M031.71.7.11.7.21.7.M011.7.M021.7.M031.81.8.11.8.21.8.31.8.M011.8.M021.8.M031.8.M041.8.M05
3.5.0

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubtavgar/CVE-2021-343712025-04-21
PoC in GitHubzwjjustdoit/CVE-2021-34371.jar2021-09-06

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-34371 is a critical vulnerability (CVSS 9.8) in Neo4j, published August 5, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 13.4%, the 96th percentile. Fixed in org.neo4j:neo4j 3.5.0.

References

This page doesn't list everything

Left out here: 213 versions. The JSON record has them.

MoveEnter Open