{"id":"CVE-2021-42767","aliases":["CVE-2021-42767","GHSA-4mpj-488r-vh6m"],"related":[],"kind":"vulnerability","state":"published","title":"Neo4j Graph Database vulnerable to Path Traversal","summary":"A directory traversal vulnerability in the apoc plugins in Neo4J Graph database before 4.4.0.1 allows attackers to read local files, and sometimes create local files. This is fixed in 3.5.17, 4.2.10, 4.3.0.4, and 4.4.0.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A directory traversal vulnerability in the apoc plugins in Neo4J Graph database before 4.4.0.1 allows attackers to read local files, and sometimes create local files. This is fixed in 3.5.17, 4.2.10, 4.3.0.4, and 4.4.0.1.","source":"cvelist"},{"lang":"en","text":"### Impact\nDirectory Traversal Vulnerabilities found in several functions of apoc plugins in Neo4j Graph database. The attacker can retrieve and download files from outside the configured directory on the affected server. Under some circumstances, the attacker can also create files.\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 (for Neo4j 4.2, 4.3, and 4.4 bundled with APOC, upgrade to the appropriate patched version):\n3.5 - bundle n/a, standalone 3.5.0.17\n4.2 - bundle 4.2.13, standalone 4.2.0.10\n4.3 - bundle 4.3.9, standalone 4.3.0.4\n4.4 - bundle 4.4.2, standalone 4.4.0.1\n\n### Workarounds\nIf you cannot upgrade the library, you can control the [allowlist of the functions](https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/#config_dbms.security.procedures.allowlist) that can be used in your system:\n\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 recognize the contribution of Nicolai Grødum from the Red Team of PwC Norway for reporting this issue and following the responsible disclosure [policy](https://neo4j.com/trust-center/responsible-disclosure/).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de cruce de directorios en los plugins apoc de la base de datos Neo4J Graph antes de la versión 4.4.0.1 permite a los atacantes leer archivos locales y, en ocasiones, crear archivos locales. Esto se ha corregido en las versiones 3.5.17, 4.2.10, 4.3.0.4 y 4.4.0.1","source":"nvd"}],"published":"2022-02-01T22:01:14.000Z","modified":"2026-07-08T06:27:44.536Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.5.17"}],"ecosystem":"Maven","package":"org.neo4j.procedure:apoc","purl":"pkg:maven/org.neo4j.procedure/apoc","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2.0","status":"affected","fixed":"4.2.10"}],"ecosystem":"Maven","package":"org.neo4j.procedure:apoc","purl":"pkg:maven/org.neo4j.procedure/apoc","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.3.0.0","status":"affected","fixed":"4.3.0.4"}],"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.1"}],"ecosystem":"Maven","package":"org.neo4j.procedure:apoc","purl":"pkg:maven/org.neo4j.procedure/apoc","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.5.0.17"},{"status":"affected","introduced":"4.2.0.0","fixed":"4.2.10"},{"status":"affected","introduced":"4.3.0.0","fixed":"4.3.0.4"},{"status":"affected","introduced":"4.4.0.0","fixed":"4.4.0.1"}],"vendor":"neo4j","product":"awesome_procedures","cpe":"cpe:2.3:a:neo4j:awesome_procedures:*:*:*:*:*:neo4j:*:*","source":"nvd"}],"references":[{"url":"https://neo4j.com","tags":["product","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/neo4j-contrib/neo4j-apoc-procedures/security/advisories/GHSA-4mpj-488r-vh6m","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42767","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-42767","url":"https://www.cve.org/CVERecord?id=CVE-2021-42767","licence":"CVE Terms of Use","modified":"2024-08-04T03:38:50.159Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4mpj-488r-vh6m","url":"https://github.com/advisories/GHSA-4mpj-488r-vh6m","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:44.536Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-42767","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42767","licence":"Public domain","modified":"2026-06-17T04:10:06.673Z"}],"updatedAt":"2026-11-25T22:58:07.088Z","epss":{"score":0.01529,"percentile":0.75466,"date":"2026-12-01T12:00:22.000Z"}}