CVE-2021-42767
JSON

9.1critical

Neo4j Graph Database vulnerable to Path Traversal

Severity
9.1critical CVSS:3.1 by NVD
Exploit likelihood
1.53% (higher than 75% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-4mpj-488r-vh6m

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
org.neo4j.procedure:apoc (Maven)before 3.5.17, from 4.2.0 before 4.2.10, from 4.3.0.0 before 4.3.0.4, from 4.4.0.0 before 4.4.0.1GitHub Advisory Database
neo4j awesome_proceduresbefore 3.5.0.17, from 4.2.0.0 before 4.2.10, from 4.3.0.0 before 4.3.0.4, from 4.4.0.0 before 4.4.0.1NVD

All scores

GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD6.4medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:N

Classification

What each source says

CVE List

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.

GitHub Advisory Database
Impact

Directory Traversal Vulnerabilities found in several functions of apoc plugins in Neo4j Graph database. The attacker can retrieve and download files from outside the configured directory on the affected server. Under some circumstances, the attacker can also create files.

Patches

The users should aim to use the latest released version compatible with their Neo4j version. The minimum versions containing patch for this vulnerability (for Neo4j 4.2, 4.3, and 4.4 bundled with APOC, upgrade to the appropriate patched version): 3.5 - bundle n/a, standalone 3.5.0.17 4.2 - bundle 4.2.13, standalone 4.2.0.10 4.3 - bundle 4.3.9, standalone 4.3.0.4 4.4 - bundle 4.4.2, standalone 4.4.0.1

Workarounds

If you cannot upgrade the library, you can control the allowlist of the functions that can be used in your system:

For more information

If you have any questions or comments about this advisory:

Credits

We want to publicly recognize the contribution of Nicolai Grødum from the Red Team of PwC Norway for reporting this issue and following the responsible disclosure policy.

NVD (es)

Una vulnerabilidad de cruce de directorios en los plugins apoc de la base de datos Neo4J Graph antes de la versión 4.4.0.1 permite a los atacantes leer archivos locales y, en ocasiones, crear archivos locales. Esto se ha corregido en las versiones 3.5.17, 4.2.10, 4.3.0.4 y 4.4.0.1

References

Sources

SourceRecordLicence
CVE ListCVE-2021-42767 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-4mpj-488r-vh6m changed 2026-07-08CC-BY-4.0
NVDCVE-2021-42767 changed 2026-06-17Public domain