{"answers":{"affected":"4 open source packages ship an affected version, including org.neo4j.procedure:apoc. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-23532 in the wild and no public exploit code.","fix":"Upgrade org.neo4j.procedure:apoc to a fixed version for your release line: 4.3.0.12 or 4.4.0.12.","what":"CVE-2022-23532 is a high-severity path traversal vulnerability in neo4j-contrib neo4j-apoc-procedures, published on 14 Jan 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-23532 and fix it if it is affected.\n\nWhat it is: CVE-2022-23532 is a high-severity path traversal vulnerability in neo4j-contrib neo4j-apoc-procedures, published on 14 Jan 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-23532 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.neo4j.procedure:apoc (Maven): affected all versions; fixed in 4.3.0.12\n- org.neo4j.procedure:apoc (Maven): affected all versions; fixed in 4.3.0.12\n- org.neo4j.procedure:apoc (Maven): affected from 4.4.0.0; fixed in 4.4.0.12\n- org.neo4j.procedure:apoc (Maven): affected from 4.4.0.0; fixed in 4.4.0.12\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-23532/ (Markdown: https://insights.sbomify.com/CVE-2022-23532/index.md)","id":"CVE-2022-23532","markdown":"https://insights.sbomify.com/CVE-2022-23532/index.md","name":"CVE-2022-23532","record":{"aliases":["GHSA-5v8v-gwmw-qw97"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Neo4j APOC plugin","requires_auth":"low_privilege","summary":"Attackers with query execution access can create files outside intended directories via path traversal in Neo4j APOC export procedures.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"awesome_procedures_on_cyper","vendor":"neo4j"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"neo4j-apoc-procedures is vulnerable to path traversal","id":"CVE-2022-23532","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":4,"n_references":2,"next":{"headline":"LiteDB contains Deserialization of Untrusted Data","id":"CVE-2022-23535"},"packages":[{"ecosystem":"Maven","fixed":["4.3.0.12"],"introduced":["0"],"last_affected":[],"package":"org.neo4j.procedure:apoc","purl":null,"source":"GHSA-5v8v-gwmw-qw97"},{"ecosystem":"Maven","fixed":["4.3.0.12"],"introduced":["0"],"last_affected":[],"package":"org.neo4j.procedure:apoc","purl":"pkg:maven/org.neo4j.procedure/apoc","source":"GHSA-5v8v-gwmw-qw97"},{"ecosystem":"Maven","fixed":["4.4.0.12"],"introduced":["4.4.0.0"],"last_affected":[],"package":"org.neo4j.procedure:apoc","purl":null,"source":"GHSA-5v8v-gwmw-qw97"},{"ecosystem":"Maven","fixed":["4.4.0.12"],"introduced":["4.4.0.0"],"last_affected":[],"package":"org.neo4j.procedure:apoc","purl":"pkg:maven/org.neo4j.procedure/apoc","source":"GHSA-5v8v-gwmw-qw97"}],"prev":{"headline":"Arbitrary file write when scanning a specially-crafted local PyPI package","id":"CVE-2022-23531"},"products":["neo4j-apoc-procedures"],"published":"2023-01-14","related":[{"cvss_score":10,"headline":"XML External Entity (XXE) vulnerability in neo4j.procedure:apoc","id":"CVE-2018-1000820","kev_date_added":null,"published":"2018-12-20"},{"cvss_score":5.9,"headline":"XML External Entity (XXE) vulnerability in apoc.import.graphml","id":"CVE-2023-23926","kev_date_added":null,"published":"2023-02-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-10","vendors":["neo4j-contrib"]},"summary":"Attackers with query execution access can create files outside intended directories via path traversal in Neo4j APOC export procedures.","url":"https://insights.sbomify.com/CVE-2022-23532/"}