Path Traversal in com.alibaba.oneagent:one-java-agent-plugin
Date: 2022-05
Affected: maven/com.alibaba.oneagent:one-java-agent-plugin
Attack vector: path-traversal
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2022-25842
CWE: CWE-22
CWE-29
CVSS: 6.9 (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:L)

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.


Mitigations:

Architectural layers (MAESTRO):