CVE-2022-37865 Apache Ivy allows creating/overwriting any file on the system
CriticalCVSS 9.1
EPSS 2.1%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
Description
With Apache Ivy 2.4.0 an optional packaging attribute has been introduced that allows artifacts to be unpacked on the fly if they used pack200 or zip packaging. For artifacts using the "zip", "jar" or "war" packaging Ivy prior to 2.5.1 doesn't verify the target path when extracting the archive. An archive containing absolute paths or paths that try to traverse "upwards" using ".." sequences can then write files to any location on the local fie system that the user executing Ivy has write access to. Ivy users of version 2.4.0 to 2.5.0 should upgrade to Ivy 2.5.1.
Upgrade path
3 packages: 2 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Apache Ivy | <= 2.5.0; >= 2.4.0 | after 2.5.0 | Partially fixed |
| apache ivy | >= 2.4.0, < 2.5.1 | 2.5.1 | Fixed |
| org.apache.ivy/ivy(Maven) | = 2.4.0; = 2.5.0; = 2.5.0-rc1; >= 2.4.0, < 2.5.1 | 2.5.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.ivy/ivy(Maven) | >= 2.4.0, < 2.5.1 | 2.5.1 |
| org.apache.ivy/ivy(Maven) | = 2.4.0 | No fix listed |
| org.apache.ivy/ivy(Maven) | = 2.5.0 | No fix listed |
| org.apache.ivy/ivy(Maven) | = 2.5.0-rc1 | No fix listed |
| Apache Ivy | >= 2.4.0 | No fix listed |
| Apache Ivy | <= 2.5.0 | No fix listed |
| apache ivy | >= 2.4.0, < 2.5.1 | 2.5.1 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- lists.apache.org mailing-list vendor-advisory
- FEDORA-2023-35f775fd6e vendor-advisory
- lists.fedoraproject.org
- github.com