{"answers":{"affected":"2 open source packages ship an affected version, including com.alibaba.oneagent:one-java-agent-plugin. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-25842 in the wild and no public exploit code.","fix":"Upgrade com.alibaba.oneagent:one-java-agent-plugin to 0.0.2 or later.","what":"CVE-2022-25842 is a medium-severity path traversal vulnerability in com.alibaba.oneagent:one-java-agent-plugin, published on 1 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-25842 and fix it if it is affected.\n\nWhat it is: CVE-2022-25842 is a medium-severity path traversal vulnerability in com.alibaba.oneagent:one-java-agent-plugin, published on 1 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-25842 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.alibaba.oneagent:one-java-agent-plugin (Maven): affected all versions; fixed in 0.0.2\n- com.alibaba.oneagent:one-java-agent-plugin (Maven): affected all versions; fixed in 0.0.2\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-25842/ (Markdown: https://insights.sbomify.com/CVE-2022-25842/index.md)","id":"CVE-2022-25842","markdown":"https://insights.sbomify.com/CVE-2022-25842/index.md","name":"CVE-2022-25842","record":{"aliases":["GHSA-9hr3-j9mc-xmq2","SNYK-JAVA-COMALIBABAONEAGENT-2407874"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Java agent plugin","requires_auth":"none","summary":"Attackers can achieve remote code execution by exploiting a Zip Slip vulnerability in the Alibaba One Java Agent plugin to overwrite executable files.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"one-java-agent","vendor":"alibabagroup"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:L/E:P","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"All versions of package com.alibaba.oneagent:one-java-agent-plugin are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) using a specially crafted archive that holds directory traversal filenames (e.g. ../../evil.exe). The attacker can overwrite executable files and either invoke them remotely or wait for the system or user to call them, thus achieving remote command execution on the victim’s machine.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-16","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-16T13:26:07Z","kind":"github_poc","ref":"https://github.com/shoucheng3/alibaba__one-java-agent_CVE-2022-25842_0-0-1","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Arbitrary File Write via Archive Extraction (Zip Slip)","id":"CVE-2022-25842","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":2,"n_references":4,"next":{"headline":"Regular Expression Denial of Service (ReDoS)","id":"CVE-2022-25844"},"packages":[{"ecosystem":"Maven","fixed":["0.0.2"],"introduced":["0"],"last_affected":[],"package":"com.alibaba.oneagent:one-java-agent-plugin","purl":null,"source":"GHSA-9hr3-j9mc-xmq2"},{"ecosystem":"Maven","fixed":["0.0.2"],"introduced":["0"],"last_affected":[],"package":"com.alibaba.oneagent:one-java-agent-plugin","purl":"pkg:maven/com.alibaba.oneagent/one-java-agent-plugin","source":"GHSA-9hr3-j9mc-xmq2"}],"prev":{"headline":"Privilege escalation in version","id":"CVE-2022-25841"},"products":["com.alibaba.oneagent:one-java-agent-plugin"],"published":"2022-05-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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["n/a"]},"summary":"Attackers can achieve remote code execution by exploiting a Zip Slip vulnerability in the Alibaba One Java Agent plugin to overwrite executable files.","url":"https://insights.sbomify.com/CVE-2022-25842/"}