CVE-2022-23532
Java vulnerability analysis and mitigation

Overview

APOC (Awesome Procedures on Cypher) is an add-on library for Neo4j that provides hundreds of procedures and functions. A path traversal vulnerability (CVE-2022-23532) was discovered in the apoc.export.* procedures of APOC plugins in Neo4j Graph database. The vulnerability was disclosed on January 13, 2023, affecting versions prior to 4.3.0.12 and 4.4.0.12 (NVD, GitHub Advisory).

Technical details

The vulnerability allows a malicious actor to potentially break out of the expected directory through path traversal. The issue is specifically related to file handling in the apoc.export.* procedures. The CVSS v3.1 base score is 7.1 (High) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:L. The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) (GitHub Advisory).

Impact

The vulnerability allows files to be created but not overwritten in unauthorized directories. For exploitation, an attacker would need either access to an authenticated Neo4j client or a Cypher injection vulnerability in an application. The procedure would also need to be allowlisted in the Neo4j configuration and have apoc.export.file.enabled set to true (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in versions 4.3.0.12, 4.4.0.12, and 5.3.1. Users should upgrade to these minimum versions or later releases compatible with their Neo4j version. For those unable to upgrade, workarounds include controlling the allowlist of procedures that can be used in the system and/or disabling local file access by setting apoc.export.file.enabled=false (GitHub Advisory).

Community reactions

The vulnerability was responsibly disclosed and patched, with credit given to Adam Reziouk from Airbus for discovering the vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management