Vulnerability · Published May 1, 2022 · Assigned by snyk
CVE-2022-25842Arbitrary File Write via Archive Extraction (Zip Slip)
Medium 6.9
In plain English
A medium-severity security flaw in com.alibaba.oneagent:one-java-agent-plugin. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.9% (higher than 90% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | com.alibaba.oneagent:one-java-agent-plugin | 0.0.2 | GHSA-9hr3-j9mc-xmq2 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | com.alibaba.oneagent:one-java-agent-plugin | 0 – before unspecified |
References
- https://snyk.io/vuln/SNYK-JAVA-COMALIBABAONEAGENT-2407874 x_refsource_MISC
- https://github.com/alibaba/one-java-agent/blob/1f399a2299a8a409d15ea6111a7098629b8f1050/one-java-agent-plugin/src/main/java/com/alibaba/oneagent/utils/IOUtils.java x_refsource_MISC
- https://github.com/alibaba/one-java-agent/pull/29 x_refsource_MISC
- https://github.com/alibaba/one-java-agent/pull/29/commits/359603b63fc6c59d8b57e061c171954bab3433bf x_refsource_MISC