{"id":"CVE-2022-25842","aliases":["EUVD-2022-3393","GHSA-9hr3-j9mc-xmq2","SNYK-JAVA-COMALIBABAONEAGENT-2407874"],"status":"published","title":"Arbitrary File Write via Archive Extraction (Zip Slip)","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.","severity":{"version":"3.1","score":6.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:L/E:P","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.03906,"percentile":0.90368,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-22","CWE-29"],"published":"2022-05-01T15:25:39Z","modified":"2026-08-12T03:51:18Z","exploits":[{"source":"pocgithub","id":"shoucheng3/alibaba__one-java-agent_CVE-2022-25842_0-0-1","title":"shoucheng3/alibaba__one-java-agent_CVE-2022-25842_0-0-1","date":"2025-08-16","url":"https://github.com/shoucheng3/alibaba__one-java-agent_CVE-2022-25842_0-0-1"}],"fixes":[{"ecosystem":"Maven","package":"com.alibaba.oneagent:one-java-agent-plugin","fixed_in":["0.0.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"com.alibaba.oneagent:one-java-agent-plugin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.2"}]}]},{"source":"osv","ecosystem":"Maven","package":"com.alibaba.oneagent:one-java-agent-plugin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.2"}]}],"versions":["0.0.1"]}],"products":[{"vendor":"alibabagroup","product":"one-java-agent"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JAVA-COMALIBABAONEAGENT-2407874","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/alibaba/one-java-agent/blob/1f399a2299a8a409d15ea6111a7098629b8f1050/one-java-agent-plugin/src/main/java/com/alibaba/oneagent/utils/IOUtils.java","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/alibaba/one-java-agent/pull/29","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/alibaba/one-java-agent/pull/29/commits/359603b63fc6c59d8b57e061c171954bab3433bf","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25842","tags":["advisory"]},{"url":"https://github.com/alibaba/one-java-agent/pull/29/commits/b5b437f9f4c8cbfe7bdbe266e975a4bd513c13fe","tags":["web"]},{"url":"https://github.com/advisories/GHSA-9hr3-j9mc-xmq2"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25842.json","tags":["advisory"]},{"url":"https://github.com/alibaba/one-java-agent","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-25842","title":"Arbitrary File Write via Archive Extraction (Zip Slip)","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.","status":"published","published":"2022-05-01T15:25:39.245Z","modified":"2024-09-17T00:56:48.532Z","cvss":[{"version":"3.1","score":6.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:L/E:P","level":"medium","assessor":"cna"}],"updated_at":"2026-11-02T14:34:28.374916Z"}],"euvd":[{"id":"EUVD-2022-3393","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.","status":"published","published":"2022-05-01T15:25:39Z","modified":"2024-09-17T00:56:48Z","cvss":[{"version":"3.1","score":6.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:L/E:P","level":"medium"}],"updated_at":"2026-11-03T00:28:54.100116Z"}],"ghsa":[{"id":"GHSA-9hr3-j9mc-xmq2","title":"Path Traversal in com.alibaba.oneagent:one-java-agent-plugin","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.","status":"published","published":"2022-05-03T00:00:44Z","modified":"2023-02-01T05:00:56Z","cvss":[{"version":"3.1","score":6.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:L","level":"medium"}],"cwes":["CWE-22","CWE-29"],"updated_at":"2026-11-02T14:36:30.61364Z"}],"nvd":[{"id":"CVE-2022-25842","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.","status":"published","published":"2022-05-01T16:15:08.71Z","modified":"2026-06-17T04:34:22.557Z","cvss":[{"version":"3.1","score":6.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:07:18.660414Z"}],"osv":[{"id":"CVE-2022-25842","title":"Arbitrary File Write via Archive Extraction (Zip Slip)","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.","status":"published","published":"2022-05-01T15:25:39.245Z","modified":"2026-08-12T03:51:18.912434605Z","cvss":[{"version":"3.1","score":6.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:L/E:P","level":"medium"}],"updated_at":"2026-11-02T15:44:24.758293Z"},{"id":"GHSA-9hr3-j9mc-xmq2","title":"Path Traversal in com.alibaba.oneagent:one-java-agent-plugin","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.","status":"published","published":"2022-05-03T00:00:44Z","modified":"2026-07-08T06:49:35.350210393Z","cvss":[{"version":"3.1","score":6.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:L","level":"medium"}],"cwes":["CWE-22","CWE-29"],"updated_at":"2026-11-02T15:46:43.875515Z"}]}}
