{"id":"CVE-2022-23532","aliases":["CVE-2022-23532","GHSA-5v8v-gwmw-qw97"],"related":[],"kind":"vulnerability","state":"published","title":"neo4j-apoc-procedures is vulnerable to path traversal","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA Path Traversal Vulnerability found in the apoc.export.* procedures of apoc plugins in Neo4j Graph database.\nThe 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.\n\nFor 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 procedure would need to have been allow listed in the neo4j configuration as well as having the apoc config `apoc.export.file.enabled` set to true. \n\nOn a UNIX based system the following query allows arbitrary write access to the tmp folder:\n\nCALL apoc.export.csv.query('RETURN 1', 'file:///..//..//..//..//tmp/test.txt', {})\n\n### Patches\nThe 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.12 and 4.3.0.12.\n\n### Workarounds\nIf you cannot upgrade the library, you can control the [allowlist of the ](https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/#config_dbms.security.procedures.allowlist)procedures that can be used in your system, and/or turn off local file access by setting apoc.export.file.enabled=false\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [neo4j-apoc-procedures](https://github.com/neo4j-contrib/neo4j-apoc-procedures)\n* Email us at [security@neo4j.com](mailto:security@neo4j.com)\n\n### Credits\nWe want to publicly recognise the contribution Adam Reziouk - Airbus.","format":"markdown","source":"ghsa"},{"lang":"es","text":"APOC (Awesome Procedures on Cypher) es una librería complementaria para Neo4j que proporciona cientos de procedimientos y funciones. Una vulnerabilidad de Path Traversal encontrada en los procedimientos apoc.export.* de los complementos apoc en la base de datos Neo4j Graph. El problema permite que un actor malintencionado pueda salir del directorio esperado. Esta vulnerabilidad es tal que los archivos sólo se pueden crear pero no sobrescribir. Para que se aproveche la vulnerabilidad, un atacante necesitaría acceso para ejecutar una consulta arbitraria, ya sea teniendo acceso a un cliente Neo4j autenticado o una vulnerabilidad de inyección de Cypher en una aplicación. Las versiones mínimas que contienen parches para esta vulnerabilidad son 4.4.0.12 y 4.3.0.12 y 5.3.1. Como workaround, puede controlar la lista de permitidos de los procedimientos que se pueden utilizar en su sistema y/o desactivar el acceso a archivos locales configurando apoc.export.file.enabled=false.","source":"nvd"}],"published":"2023-01-13T21:28:46.000Z","modified":"2026-06-17T04:30:18.513Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:L","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:L","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:L","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 4.3.0.12","status":"affected"},{"version":">= 4.4.0.0, < 4.4.0.12","status":"affected"}],"vendor":"neo4j-contrib","product":"neo4j-apoc-procedures","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.3.0.12"}],"ecosystem":"Maven","package":"org.neo4j.procedure:apoc","purl":"pkg:maven/org.neo4j.procedure/apoc","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.4.0.0","status":"affected","fixed":"4.4.0.12"}],"ecosystem":"Maven","package":"org.neo4j.procedure:apoc","purl":"pkg:maven/org.neo4j.procedure/apoc","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.3.0.12"},{"status":"affected","introduced":"4.4.0.0","fixed":"4.4.0.12"},{"status":"affected","version":"5.3.0"}],"vendor":"neo4j","product":"awesome_procedures_on_cyper","cpe":"cpe:2.3:a:neo4j:awesome_procedures_on_cyper:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/neo4j-contrib/neo4j-apoc-procedures/security/advisories/GHSA-5v8v-gwmw-qw97","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/neo4j-contrib/neo4j-apoc-procedures/commit/01e63ed2d187cd2a8aa1d78bf831ef0fdd69b522","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23532","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/neo4j-contrib/neo4j-apoc-procedures","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-03-10T21:00:05.318Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-23532","url":"https://www.cve.org/CVERecord?id=CVE-2022-23532","licence":"CVE Terms of Use","modified":"2025-03-10T21:29:52.131Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5v8v-gwmw-qw97","url":"https://github.com/advisories/GHSA-5v8v-gwmw-qw97","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:21.172Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-23532","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23532","licence":"Public domain","modified":"2026-06-17T04:30:18.513Z"}],"updatedAt":"2026-11-25T22:58:18.199Z","epss":{"score":0.00749,"percentile":0.5117,"date":"2026-11-30T12:00:22.000Z"}}