GitHub Advisoryadvisory · Maven

GHSA-4mpj-488r-vh6m Neo4j Graph Database vulnerable to Path Traversal

CRITICAL Published 2022-02-01 Modified 2022-07-22 Official page ↗
Aliases
CVE-2021-42767
Ecosystem
Maven
Packages
org.neo4j.procedure:apoc
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weaknesses
CWE-22
Reviewed
2022-02-01

Affected packages

• Maven org.neo4j.procedure:apoc: < 3.5.17 → fixed in 3.5.17 • Maven org.neo4j.procedure:apoc: >= 4.2.0, < 4.2.10 → fixed in 4.2.10 • Maven org.neo4j.procedure:apoc: >= 4.3.0.0, < 4.3.0.4 → fixed in 4.3.0.4 • Maven org.neo4j.procedure:apoc: >= 4.4.0.0, < 4.4.0.1 → fixed in 4.4.0.1

Description

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: • Open an issue in neo4j-apoc-procedures • Email us at [email protected] 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.

Related

Alias · CVE (1)

  • CVE-2021-42767 A directory traversal vulnerability in the apoc plugins in Neo4J Graph database before 4.4.0.1 allows attackers to read local files, and… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References