Vulnerabilities / CVE-2022-37865

critical

CVE-2022-37865

apache-ivy: Directory Traversal

Published Modified CWE 22
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
GHSA9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Red Hat9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

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

SourcePackageFixed in
maven::GitHub Security Advisory Mavenorg.apache.ivy:ivy2.5.1
amazon linux 2023apache-ivy, apache-ivy-javadoc2.5.1-1.amzn2023.0.1
rapidfort amazon linux 2023apache-ivy, apache-ivy-javadoc2.5.1-1.amzn2023.0.1
Red Hatapache-ivy, apache-ivy-javadoc, rh-maven36-apache-ivy and 1 moreno fix listed
Show all 9 entries from 4 sources
SourcePackageFixed in
maven::GitHub Security Advisory Mavenorg.apache.ivy:ivy2.5.1
amazon linux 2023apache-ivy2.5.1-1.amzn2023.0.1
amazon linux 2023apache-ivy-javadoc2.5.1-1.amzn2023.0.1
rapidfort amazon linux 2023apache-ivy2.5.1-1.amzn2023.0.1
rapidfort amazon linux 2023apache-ivy-javadoc2.5.1-1.amzn2023.0.1
Red Hatapache-ivyno fix listed
Red Hatapache-ivy-javadocno fix listed
Red Hatrh-maven36-apache-ivyno fix listed
Red Hatrh-maven36-apache-ivy-javadocno fix listed

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.