Critical

Apache Ivy does not verify target path when extracting the archive

  • Disclosed: 07.11.2022
  • Updated: 11.10.2026 12:21

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 version 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 version 2.5.1.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.apache.ivy:ivy >= 2.4.0, < 2.5.1 2.5.1

References

CVSS score 9.1/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Weakness (CWE)
CWE-22
Platform
Java / Kotlin (Maven)
Package
org.apache.ivy:ivy
Disclosed
07.11.2022
Updated
11.10.2026 12:21

Sources and licenses

OSV / GitHub Advisory Database - GHSA-94rr-4jr5-9h2p - CC BY 4.0

Vulnerability history: org.apache.ivy:ivy

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
3
First → latest
11.2022 08.2023
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 2

Disclosures per year

  1. 2022: 2
  2. 2023: 1
  3. 2024: 0
  4. 2025: 0
  5. 2026: 0
  1. High · 8.2 CVE-2022-46751 < 2.5.2 2.5.2
  2. High · 7.5 CVE-2022-37866 >= 2.0.0, < 2.5.1 2.5.1
  3. Apache Ivy does not verify target path when extracting the archive this entry
    Critical · 9.1 CVE-2022-37865 >= 2.4.0, < 2.5.1 2.5.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.