{"answers":{"affected":"8 open source packages ship an affected version, including org.neo4j.procedure:apoc. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-42767 in the wild and no public exploit code.","fix":"Upgrade org.neo4j.procedure:apoc to a fixed version for your release line: 3.5.17, 4.2.10, 4.3.0.4 or 4.4.0.1.","what":"CVE-2021-42767 is a critical path traversal vulnerability in n/a, published on 1 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-42767 and fix it if it is affected.\n\nWhat it is: CVE-2021-42767 is a critical path traversal vulnerability in n/a, published on 1 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-42767 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 3.5.17\n- org.neo4j.procedure:apoc (Maven): affected all versions; fixed in 3.5.17\n- org.neo4j.procedure:apoc (Maven): affected from 4.2.0; fixed in 4.2.10\n- org.neo4j.procedure:apoc (Maven): affected from 4.2.0; fixed in 4.2.10\n- org.neo4j.procedure:apoc (Maven): affected from 4.3.0.0; fixed in 4.3.0.4\n- org.neo4j.procedure:apoc (Maven): affected from 4.3.0.0; fixed in 4.3.0.4\n- org.neo4j.procedure:apoc (Maven): affected from 4.4.0.0; fixed in 4.4.0.1\n- org.neo4j.procedure:apoc (Maven): affected from 4.4.0.0; fixed in 4.4.0.1\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-2021-42767/ (Markdown: https://insights.sbomify.com/CVE-2021-42767/index.md)","id":"CVE-2021-42767","markdown":"https://insights.sbomify.com/CVE-2021-42767/index.md","name":"CVE-2021-42767","record":{"aliases":["GHSA-4mpj-488r-vh6m"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Neo4j APOC plugin","requires_auth":"none","summary":"Attackers can read and potentially create local files via directory traversal in the Neo4j APOC plugin, requiring an upgrade to secure the database.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"awesome_procedures","vendor":"neo4j"}],"cvss":{"score":9.1,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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.","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 Graph Database vulnerable to Path Traversal","id":"CVE-2021-42767","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2021"},"n_packages":8,"n_references":2,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-42770"},"packages":[{"ecosystem":"Maven","fixed":["3.5.17"],"introduced":["0"],"last_affected":[],"package":"org.neo4j.procedure:apoc","purl":null,"source":"GHSA-4mpj-488r-vh6m"},{"ecosystem":"Maven","fixed":["3.5.17"],"introduced":["0"],"last_affected":[],"package":"org.neo4j.procedure:apoc","purl":"pkg:maven/org.neo4j.procedure/apoc","source":"GHSA-4mpj-488r-vh6m"},{"ecosystem":"Maven","fixed":["4.2.10"],"introduced":["4.2.0"],"last_affected":[],"package":"org.neo4j.procedure:apoc","purl":null,"source":"GHSA-4mpj-488r-vh6m"},{"ecosystem":"Maven","fixed":["4.2.10"],"introduced":["4.2.0"],"last_affected":[],"package":"org.neo4j.procedure:apoc","purl":"pkg:maven/org.neo4j.procedure/apoc","source":"GHSA-4mpj-488r-vh6m"},{"ecosystem":"Maven","fixed":["4.3.0.4"],"introduced":["4.3.0.0"],"last_affected":[],"package":"org.neo4j.procedure:apoc","purl":null,"source":"GHSA-4mpj-488r-vh6m"},{"ecosystem":"Maven","fixed":["4.3.0.4"],"introduced":["4.3.0.0"],"last_affected":[],"package":"org.neo4j.procedure:apoc","purl":"pkg:maven/org.neo4j.procedure/apoc","source":"GHSA-4mpj-488r-vh6m"},{"ecosystem":"Maven","fixed":["4.4.0.1"],"introduced":["4.4.0.0"],"last_affected":[],"package":"org.neo4j.procedure:apoc","purl":null,"source":"GHSA-4mpj-488r-vh6m"},{"ecosystem":"Maven","fixed":["4.4.0.1"],"introduced":["4.4.0.0"],"last_affected":[],"package":"org.neo4j.procedure:apoc","purl":"pkg:maven/org.neo4j.procedure/apoc","source":"GHSA-4mpj-488r-vh6m"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2021-42766"},"products":["n/a"],"published":"2022-03-01","related":[],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Attackers can read and potentially create local files via directory traversal in the Neo4j APOC plugin, requiring an upgrade to secure the database.","url":"https://insights.sbomify.com/CVE-2021-42767/"}