{"answers":{"affected":"2 open source packages ship an affected version, including ai.djl:api.","exploited":"There is no known exploitation of CVE-2025-0851 in the wild and no public exploit code.","fix":"Upgrade ai.djl:api to 0.31.1 or later.","what":"CVE-2025-0851 is a critical path traversal vulnerability in AWS DeepJavaLibrary, published on 29 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-0851 and fix it if it is affected.\n\nWhat it is: CVE-2025-0851 is a critical path traversal vulnerability in AWS DeepJavaLibrary, published on 29 Jan 2025. 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-2025-0851 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ai.djl:api (Maven): affected all versions; fixed in 0.31.1\n- ai.djl:api (Maven): affected all versions; fixed in 0.31.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-2025-0851/ (Markdown: https://insights.sbomify.com/CVE-2025-0851/index.md)","id":"CVE-2025-0851","markdown":"https://insights.sbomify.com/CVE-2025-0851/index.md","name":"CVE-2025-0851","record":{"aliases":["GHSA-jcrp-x7w3-ffmg"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Deep Java Library","requires_auth":"none","summary":"An attacker can write files to arbitrary locations via path traversal in DJL's unzip and untar utilities, potentially compromising system integrity.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"AMZN","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"},{"id":"CWE-36","name":"Absolute Path Traversal"}],"description":"A path traversal issue in ZipUtils.unzip and TarUtils.untar in Deep Java Library (DJL) on all platforms allows a bad actor to write files to arbitrary locations.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-02-17","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-02-17T09:33:28Z","kind":"github_poc","ref":"https://github.com/skrkcb2/CVE-2025-0851","stars":1,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Path traversal issue in Deep Java Library","id":"CVE-2025-0851","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":2,"n_references":3,"next":{"headline":"Voluntarily withdrawn","id":"CVE-2025-0852"},"packages":[{"ecosystem":"Maven","fixed":["0.31.1"],"introduced":["0"],"last_affected":[],"package":"ai.djl:api","purl":null,"source":"GHSA-jcrp-x7w3-ffmg"},{"ecosystem":"Maven","fixed":["0.31.1"],"introduced":["0"],"last_affected":[],"package":"ai.djl:api","purl":"pkg:maven/ai.djl/api","source":"GHSA-jcrp-x7w3-ffmg"}],"prev":{"headline":"CampCodes School Management Software Staff edit-staff improper authorization","id":"CVE-2025-0849"},"products":["DeepJavaLibrary"],"published":"2025-01-29","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-14","vendors":["AWS"]},"summary":"An attacker can write files to arbitrary locations via path traversal in DJL's unzip and untar utilities, potentially compromising system integrity.","url":"https://insights.sbomify.com/CVE-2025-0851/"}