{"id":"CVE-2022-23532","published":"2023-01-14T00:29:27Z","modified":"2025-03-10T21:29:52Z","title":"neo4j-apoc-procedures is vulnerable to path traversal","vendor":"neo4j-contrib","product":"neo4j-apoc-procedures","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00715,"percentile":0.54633,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/neo4j-contrib/neo4j-apoc-procedures/security/advisories/GHSA-5v8v-gwmw-qw97","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/neo4j-contrib/neo4j-apoc-procedures/commit/01e63ed2d187cd2a8aa1d78bf831ef0fdd69b522","tags":["x_refsource_MISC"]}],"priority":{"score":20.9,"factors":[{"name":"EPSS percentile","points":10.93},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"neo4j-contrib","affectedVersions":[{"vendor":"neo4j-contrib","product":"neo4j-apoc-procedures","versions":["< 4.3.0.12",">= 4.4.0.0, < 4.4.0.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-10T21:00:05.318571Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.neo4j.procedure:apoc","vulnerableRanges":["<4.3.0.12",">=4.4.0.0, <4.4.0.12"],"patched":["4.3.0.12","4.4.0.12"],"from":["GHSA-5v8v-gwmw-qw97"],"provenance":"source"}],"summary":{"text":"A path traversal flaw in the apoc.export.* procedures of the neo4j-apoc-procedures library (APOC, an add-on for the Neo4j graph database) allows files to escape the intended directory, though files can only be created, not overwritten. An attacker needs to be able to run an arbitrary Cypher query, either as an authenticated Neo4j client or through a Cypher injection flaw in an application, and the attack is not reachable over the network without that query access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:21Z"},"euvd":{"id":"EUVD-2023-0344","exploited":false,"provenance":"source"},"exploitRefs":["https://github.com/neo4j-contrib/neo4j-apoc-procedures/security/advisories/GHSA-5v8v-gwmw-qw97","https://github.com/neo4j-contrib/neo4j-apoc-procedures/commit/01e63ed2d187cd2a8aa1d78bf831ef0fdd69b522","https://github.com/neo4j-contrib/neo4j-apoc-procedures"],"lineage":{"packageHistory":[{"cve":"CVE-2018-1000820","published":"2018-12-20","fixed":"3.4.0.4","kev":false},{"cve":"CVE-2021-42767","published":"2022-03-01","fixed":"4.4.0.1","kev":false},{"cve":"CVE-2022-37423","published":"2022-08-12","fixed":"4.4.0.8","kev":false,"link":{"from":"CVE-2022-37423","to":"CVE-2022-23532","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.neo4j.procedure:apoc","fromFixed":"4.3.0.7","toFixed":"4.3.0.12","daysApart":155},{"kind":"similar","provenance":"machine","score":0.7,"basis":"same package + description similarity"}]}},{"cve":"CVE-2022-23532","published":"2023-01-14","fixed":"4.4.0.12","kev":false}],"package":"Maven:org.neo4j.procedure:apoc"}}