{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-25842","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 o","descriptionLong":"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.","published":"2022-05-01T15:25:39.245Z","updated":"2026-08-12T03:51:18.912434605Z","reserved":"2022-02-24T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"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","rating":"medium","source":"snyk"},"metrics":[{"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","rating":"medium","source":"snyk"},{"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","rating":"medium","source":"snyk.io"},{"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","rating":"critical","source":"NVD"},{"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","rating":"medium","source":"OSV"},{"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","rating":"medium","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"medium","products":["com.alibaba.oneagent:one-java-agent-plugin"],"affectedProducts":[{"vendor":"n/a","product":"com.alibaba.oneagent:one-java-agent-plugin","defaultStatus":null,"versions":[{"lessThan":"unspecified","status":"affected","version":"0","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"com.alibaba.oneagent:one-java-agent-plugin","purl":"pkg:maven/com.alibaba.oneagent/one-java-agent-plugin","ranges":["<0.0.2"],"fixed":["0.0.2"],"advisory":"GHSA-9hr3-j9mc-xmq2"}],"cwes":["CWE-22","CWE-29"],"aliases":["GHSA-9hr3-j9mc-xmq2","SNYK-JAVA-COMALIBABAONEAGENT-2407874"],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25842.json","tags":["advisory"]},{"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/alibaba/one-java-agent","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03906,"epssPercentile":0.90501,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-25842","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25842","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-25842","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9hr3-j9mc-xmq2","ok":true,"note":"GHSA-9hr3-j9mc-xmq2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-25842","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}