CVE-2022-25842
CRITICAL 9.8CVSS 3.1Path Traversal in com.alibaba.oneagent:one-java-agent-plugin
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
- 1 May 2022
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-22CWE-29
- Also known as
- GHSA-9hr3-j9mc-xmq2SNYK-JAVA-COMALIBABAONEAGENT-2407874
- Sources
- NVDJSONOSV GHSA-9hr3-j9mc-xmq2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 6.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | alibabagroup | one-java-agentcpe:2.3:a:alibabagroup:one-java-agent:*:*:*:*:*:*:*:* |
all versions | |
| OSV | Maven | com.alibaba.oneagent:one-java-agent-plugin | < 0.0.2 | 0.0.2 |
References
- https://github.com/alibaba/one-java-agent/blob/1f399a2299a8a409d15ea6111a7098629b8f1050/one-java-agent-plugin/src/main/java/com/alibaba/oneagent/utils/IOUtils.java · Exploit, Third Party Advisory, WEB
- https://github.com/alibaba/one-java-agent/pull/29 · Patch, Third Party Advisory, WEB
- https://github.com/alibaba/one-java-agent/pull/29/commits/359603b63fc6c59d8b57e061c171954bab3433bf · Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JAVA-COMALIBABAONEAGENT-2407874 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25842 · ADVISORY
- https://github.com/alibaba/one-java-agent/pull/29/commits/b5b437f9f4c8cbfe7bdbe266e975a4bd513c13fe · WEB
- https://github.com/alibaba/one-java-agent · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 1 May 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 3 May 2022)