Deserialization of Untrusted Data in Neo4jGHSA-pc4w-8v5j-29w9
CRITICALGHSA-pc4w-8v5j-29w9 is a critical-severity (CVSS 9.8) Deserialization of Untrusted Data vulnerability in org.neo4j:neo4j. 4 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for org.neo4j:neo4j — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.neo4j:neo4jReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.neo4j:neo4j | all versions | 3.5.0org.neo4j:neo4j:3.5.0 |
Affected Products
neo4jneo4jResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Neo4j 3.4.18 - 'setSessionVariable' RMI Based Remote Code Execution (RCE)
by Christopher Ellis · Aug 2, 2021
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.neo4j:neo4j, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.neo4j:neo4j to 3.5.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-pc4w-8v5j-29w9 is resolved across your whole dependency graph.
Workarounds
Do not deserialise data from untrusted sources: where the format allows it, restrict deserialisation to an explicit allowlist of expected types, and prefer a data-only format (JSON, Protobuf) over one that can reconstruct arbitrary objects until you can upgrade.
Frequently Asked Questions
Is GHSA-pc4w-8v5j-29w9 in your dependencies?
Find it across Maven, including transitive dependencies.