Skip to content

CVE-2022-37866 Apache Ivy allows path traversal in the presence of a malicious repository

HighCVSS 7.5 EPSS 1.9%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

When Apache Ivy downloads artifacts from a repository it stores them in the local file system based on a user-supplied "pattern" that may include placeholders for artifacts coordinates like the organisation, module or version. If said coordinates contain "../" sequences - which are valid characters for Ivy coordinates in general - it is possible the artifacts are stored outside of Ivy's local cache or repository or can overwrite different artifacts inside of the local cache. In order to exploit this vulnerability an attacker needs collaboration by the remote repository as Ivy will issue http requests containing ".." sequences and a "normal" repository will not interpret them as part of the artifact coordinates. Users of Apache Ivy 2.0.0 to 2.5.1 should upgrade to Ivy 2.5.1.

Upgrade path

3 packages: 2 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
Apache Ivy <= 2.5.0; >= 2.0.0 after 2.5.0 Partially fixed
apache ivy >= 2.0.0, < 2.5.1 2.5.1 Fixed
org.apache.ivy/ivy(Maven) = 2.0.0; = 2.1.0; = 2.1.0-rc1; = 2.1.0-rc2 +10 more 2.5.1 Fixed

Affected products

ProductAffected versionsFixed in
org.apache.ivy/ivy(Maven) >= 2.0.0, < 2.5.1 2.5.1
org.apache.ivy/ivy(Maven) = 2.0.0 No fix listed
org.apache.ivy/ivy(Maven) = 2.1.0 No fix listed
org.apache.ivy/ivy(Maven) = 2.1.0-rc1 No fix listed
org.apache.ivy/ivy(Maven) = 2.1.0-rc2 No fix listed
org.apache.ivy/ivy(Maven) = 2.2.0 No fix listed
org.apache.ivy/ivy(Maven) = 2.2.0-rc1 No fix listed
org.apache.ivy/ivy(Maven) = 2.3.0 No fix listed
org.apache.ivy/ivy(Maven) = 2.3.0-rc1 No fix listed
org.apache.ivy/ivy(Maven) = 2.3.0-rc2 No fix listed
org.apache.ivy/ivy(Maven) = 2.4.0 No fix listed
org.apache.ivy/ivy(Maven) = 2.4.0-rc1 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.0.0 No fix listed
Apache Ivy <= 2.5.0 No fix listed
apache ivy >= 2.0.0, < 2.5.1 2.5.1

References