{"id":"CVE-2022-25842","summary":"Arbitrary File Write via Archive Extraction (Zip Slip)","details":"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.","aliases":["GHSA-9hr3-j9mc-xmq2","SNYK-JAVA-COMALIBABAONEAGENT-2407874"],"modified":"2026-07-15T01:48:54.805256884Z","published":"2022-05-01T15:25:39.245Z","database_specific":{"cna_assigner":"snyk","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25842.json"},"references":[{"type":"WEB","url":"https://github.com/alibaba/one-java-agent/blob/1f399a2299a8a409d15ea6111a7098629b8f1050/one-java-agent-plugin/src/main/java/com/alibaba/oneagent/utils/IOUtils.java"},{"type":"WEB","url":"https://github.com/alibaba/one-java-agent/pull/29/commits/359603b63fc6c59d8b57e061c171954bab3433bf"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25842.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25842"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-JAVA-COMALIBABAONEAGENT-2407874"},{"type":"FIX","url":"https://github.com/alibaba/one-java-agent/pull/29"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/alibaba/one-java-agent","events":[{"introduced":"0"},{"last_affected":"b911af2bb779917c84a016350700745dc31c642a"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"0"},{"last_affected":"0"}]}}],"versions":["0","one-java-agent-parent-0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25842.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:L/E:P"}]}