GitHub Advisoryadvisory · Maven

GHSA-78f9-745f-278p Neo4j Graph apoc plugins Partial Path Traversal Vulnerability

MEDIUM Published 2022-08-12 Modified 2022-08-12 Official page ↗
Aliases
CVE-2022-37423
Ecosystem
Maven
Packages
org.neo4j.procedure:apoc
Severity
Moderate
Weaknesses
CWE-22
Reviewed
2022-08-12

Affected packages

• Maven org.neo4j.procedure:apoc: >= 4.4.0.0, < 4.4.0.8 → fixed in 4.4.0.8 • Maven org.neo4j.procedure:apoc: < 4.3.0.7 → fixed in 4.3.0.7

Description

Impact A partial Directory Traversal Vulnerability found in `apoc.log.stream` function of apoc plugins in Neo4j Graph database. This issue allows a malicious actor to potentially break out of the expected directory. The impact is limited to sibling directories. For example, `userControlled.getCanonicalPath().startsWith("/usr/out")` will allow an attacker to access a directory with a name like `/usr/outnot`. Patches The users should aim to use the latest released version compatible with their Neo4j version. The minimum versions containing patch for this vulnerability are 4.4.0.8 and 4.3.0.7 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 recognise the contribution of Jonathan Leitschuh for reporting this issue.

Related

Alias · CVE (1)

  • CVE-2022-37423 Neo4j APOC (Awesome Procedures on Cypher) before 4.3.0.7 and 4.x before 4.4.0.8 allows Directory Traversal to sibling directories via… vulnerability

Weakness · CWE (1)

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

References