CVE-2022-25842
Alibabagroup One-java-agent vulnerability
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 products
One-java-agent. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Alibabagroup One-java-agent runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/alibaba/one-java-agent/pull/29 · Patch
- github.com/alibaba/one-java-agent/blob/1f399a2299a8a409d15ea6111a7098629b8f1050/one-java-a · Exploit
- github.com/alibaba/one-java-agent/pull/29/commits/359603b63fc6c59d8b57e061c171954bab3433bf · Third Party Advisory
- snyk.io/vuln/SNYK-JAVA-COMALIBABAONEAGENT-2407874 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-25842
- cve.org/CVERecord?id=CVE-2022-25842
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.