CVE-2026-26032

Apache Ivy: PackagerResolver path traversal vulnerability

Published Jul 15, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
The PackagerResolver of Apache Ivy is able to download online
artifacts and to (re)package them in a format defined by a
packager.xml file. This repackaging is done by an Ant script, which is
stored in a subdirectory of the configured "buildRoot" directory. This
subdirectory is calculated based on modules coordinates, like the
organisation, name or version.

If one of the coordinates contains "../" sequences - which are valid
characters for Ivy coordinates in general- it is possible to break out
of the configured "buildRoot" directory where other files can be
overwritten.

In order to exploit this vulnerability an attacker needs to have
access to a packager repository and add or modify the coordinates in
ivy.xml files to have such "../" sequences.

Users of Apache Ivy 2.0.0 to 2.5.3 (inclusive) should upgrade to Ivy 2.6.0.

Analysis

AI-generated

Technical impact

The PackagerResolver module in Apache Ivy allows an attacker to download artifacts and repack them via an Ant script stored under a subdirectory of the configured buildRoot. Because the subdirectory name is derived from module coordinates such as organisation, name, and version, an attacker who injects a coordinate containing the string "../" can cause the path calculation to escape the intended buildRoot and overwrite any file within that directory. This flaw is a classic path‑traversal vulnerability and can replace legitimate files with malicious ones if write rights are granted.

Affected Systems

Apache Software Foundation’s Ivy product, versions 2.0.0 through 2.5.3, is affected. The issue is confined to the PackagerResolver module across this version range.

Risk and Exploitability

The CVSS base score of 5.4 indicates moderate severity, and the EPSS score of less than 1% suggests a low likelihood of exploitation in the wild. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an attacker to gain write access to a packager repository and modify an ivy.xml file to include coordinates containing "../" sequences. Hence the attack vector is restricted, but the potential impact of file overwrite remains significant if write privileges are granted.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache Ivy to version 2.6.0 or later.
  • Restrict write access to the packager repository, ensuring only trusted users can modify ivy.xml files.
  • Implement input validation to reject coordinates containing directory traversal patterns such as "../" before processing them.

Generated by OpenCVE AI on July 31, 2026 at 03:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Apache
Apache ivy
Vendors & Products Apache
Apache ivy
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The PackagerResolver of Apache Ivy is able to download online artifacts and to (re)package them in a format defined by a packager.xml file. This repackaging is done by an Ant script, which is stored in a subdirectory of the configured "buildRoot" directory. This subdirectory is calculated based on modules coordinates, like the organisation, name or version. If one of the coordinates contains "../" sequences - which are valid characters for Ivy coordinates in general- it is possible to break out of the configured "buildRoot" directory where other files can be overwritten. In order to exploit this vulnerability an attacker needs to have access to a packager repository and add or modify the coordinates in ivy.xml files to have such "../" sequences. Users of Apache Ivy 2.0.0 to 2.5.3 (inclusive) should upgrade to Ivy 2.6.0.
Title Apache Ivy: PackagerResolver path traversal vulnerability
Weaknesses CWE-22
References
Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Jul 15, 2026, 7:31 PM
Reserved
Feb 9, 2026, 10:55 PM
Status
Analyzed
Published
Jul 15, 2026, 7:17 PM
Modified
Oct 24, 2026, 9:10 PM