{"id":"CVE-2021-42767","aliases":["GHSA-4mpj-488r-vh6m"],"url":"https://o3.security/vulnerability/CVE-2021-42767","summary":"Neo4j Graph Database vulnerable to Path Traversal","details":"### 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/). \n","published":"2022-03-01T02:15:07.370Z","modified":"2026-07-09T10:01:21.072784Z","cvss":{"score":9.1,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.neo4j.procedure:apoc","fixedVersion":"3.5.17"},{"ecosystem":"Maven","name":"org.neo4j.procedure:apoc","fixedVersion":"4.2.10"},{"ecosystem":"Maven","name":"org.neo4j.procedure:apoc","fixedVersion":"4.3.0.4"},{"ecosystem":"Maven","name":"org.neo4j.procedure:apoc","fixedVersion":"4.4.0.1"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/neo4j-contrib/neo4j-apoc-procedures/security/advisories/GHSA-4mpj-488r-vh6m"},{"type":"ADVISORY","url":"https://neo4j.com"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42767"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T10:01:21.072784Z"}}