CVE-2021-42767 Neo4j Graph Database vulnerable to Path Traversal

Critical 9.1 Published Updated

Attackers can read and potentially create local files via directory traversal in the Neo4j APOC plugin, requiring an upgrade to secure the database.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-42767?

CVE-2021-42767 is a critical path traversal vulnerability in n/a, published on 1 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A directory traversal vulnerability in the apoc plugins in Neo4J Graph database before 4.4.0.1 allows attackers to read local files, and sometimes create local files. This is fixed in 3.5.17, 4.2.10, 4.3.0.4, and 4.4.0.1.

Weakness: CWE-22

Which versions are affected by CVE-2021-42767?

8 open source packages ship an affected version, including org.neo4j.procedure:apoc. It affects 1 product.

PackageAffectedFixed in
org.neo4j.procedure:apoc MavenAll versions3.5.17
org.neo4j.procedure:apoc MavenAll versions3.5.17
org.neo4j.procedure:apoc MavenFrom 4.2.04.2.10
org.neo4j.procedure:apoc MavenFrom 4.2.04.2.10
org.neo4j.procedure:apoc MavenFrom 4.3.0.04.3.0.4
org.neo4j.procedure:apoc MavenFrom 4.3.0.04.3.0.4
2 more packages
org.neo4j.procedure:apoc MavenFrom 4.4.0.04.4.0.1
org.neo4j.procedure:apoc MavenFrom 4.4.0.04.4.0.1

Products include Neo4j Awesome Procedures.

How do I fix CVE-2021-42767?

Upgrade org.neo4j.procedure:apoc to a fixed version for your release line: 3.5.17, 4.2.10, 4.3.0.4 or 4.4.0.1.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-42767 being exploited?

There is no known exploitation of CVE-2021-42767 in the wild and no public exploit code.

Sources

Also known as GHSA-4mpj-488r-vh6m.

Is CVE-2021-42767 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free