Vulnerability · Published Jan 14, 2023 · Assigned by GitHub_M

CVE-2022-23532neo4j-apoc-procedures is vulnerable to path traversal

High 7.1

In plain English

A high-severity path traversal in neo4j-apoc-procedures from neo4j-contrib. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.7%top 47.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

APOC (Awesome Procedures on Cypher) is an add-on library for Neo4j that provides hundreds of procedures and functions. A path traversal vulnerability found in the apoc.export.* procedures of apoc plugins in Neo4j Graph database. The issue allows a malicious actor to potentially break out of the expected directory. The vulnerability is such that files could only be created but not overwritten. For the vulnerability to be exploited, an attacker would need access to execute an arbitrary query, either by having access to an authenticated Neo4j client, or a Cypher injection vulnerability in an application. The minimum versions containing patch for this vulnerability are 4.4.0.12 and 4.3.0.12 and 5.3.1. As a workaround, you can control the allowlist of the procedures that can be used in your system, and/or turn off local file access by setting apoc.export.file.enabled=false.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Mavenorg.neo4j.procedure:apoc4.3.0.12GHSA-5v8v-gwmw-qw97
Mavenorg.neo4j.procedure:apoc4.4.0.12GHSA-5v8v-gwmw-qw97

Affected products (as reported)

VendorProductVersions
neo4j-contrib neo4j-apoc-procedures < 4.3.0.12>= 4.4.0.0, < 4.4.0.12

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:L

References