CVE-2021-34802 — neo4j-kernel
HIGHCVE-2021-34802 is a high-severity (CVSS 8.8) Improper Privilege Management vulnerability in org.neo4j:neo4j-kernel. A fix is available for org.neo4j:neo4j-kernel — see the affected versions and patch details below.
Improper Privilege Management in Neo4j Graph Database
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:neo4j-kernelReal-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
A failure in resetting the security context in some transaction actions in Neo4j Graph Database 4.2 and 4.3 could allow authenticated users to execute commands with elevated privileges.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.neo4j:neo4j-kernel | ≥ 4.2.0&&< 4.2.8 | 4.2.8org.neo4j:neo4j-kernel:4.2.8 |
Affected Products
graph databseneo4jDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.neo4j:neo4j-kernel, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.neo4j:neo4j-kernel to 4.2.8 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-34802 is resolved across your whole dependency graph.
Workarounds
Close the privilege gap rather than the entry point: audit which accounts, roles and service identities can reach the affected operation, drop the component to the least privilege it actually needs, and review file and directory permissions created by earlier installs — a default left in place is what makes this reachable.
Frequently Asked Questions
Is CVE-2021-34802 in your dependencies?
Find it across Maven, including transitive dependencies.