CVE-2022-37865
apache-ivy: Directory Traversal
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Amazon (high), Red Hat (medium).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.apache.ivy:ivy | 2.5.1 |
| amazon linux 2023 | apache-ivy, apache-ivy-javadoc | 2.5.1-1.amzn2023.0.1 |
| rapidfort amazon linux 2023 | apache-ivy, apache-ivy-javadoc | 2.5.1-1.amzn2023.0.1 |
| Red Hat | apache-ivy, apache-ivy-javadoc, rh-maven36-apache-ivy and 1 more | no fix listed |
Show all 9 entries from 4 sources
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.apache.ivy:ivy | 2.5.1 |
| amazon linux 2023 | apache-ivy | 2.5.1-1.amzn2023.0.1 |
| amazon linux 2023 | apache-ivy-javadoc | 2.5.1-1.amzn2023.0.1 |
| rapidfort amazon linux 2023 | apache-ivy | 2.5.1-1.amzn2023.0.1 |
| rapidfort amazon linux 2023 | apache-ivy-javadoc | 2.5.1-1.amzn2023.0.1 |
| Red Hat | apache-ivy | no fix listed |
| Red Hat | apache-ivy-javadoc | no fix listed |
| Red Hat | rh-maven36-apache-ivy | no fix listed |
| Red Hat | rh-maven36-apache-ivy-javadoc | no fix listed |
References
- https://access.redhat.com/security/cve/CVE-2022-37865
- https://lists.apache.org/thread/gqvvv7qsm2dfjg6xzsw1s2h08tbr0sdy
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YDIFDL5WSBEKBUVKTABUFDDD25SBNJLS
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YDIFDL5WSBEKBUVKTABUFDDD25SBNJLS/
- https://nvd.nist.gov/vuln/detail/CVE-2022-37865
- https://www.cve.org/CVERecord?id=CVE-2022-37865