VDB

CVE-2022-37866

CVE-2022-37866 PUBLISHED CVSS 7.5 HIGH

Apache Ivy allows path traversal in the presence of a malicious repository

Reported by apache · Published November 7, 2022

ivy is fixed in 2.5.1 (Maven Central)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
org.apache.ivy:ivyMaven Central2.5.1
gradle-stage0Wolfi8.0.1-r0
apache-ivy-javadocAmazon Linux2.5.1-1.amzn2023.0.1, 2.3.0-4.amzn2.0.1
apache-ivyAmazon Linux2.5.1-1.amzn2023.0.1, 2.3.0-4.amzn2.0.1
gradle-stage0Chainguard8.0.1-r0
ivyapache2.5.1
Apache IvyApache Software Foundationunspecified, 2.5.0

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
Apache Software FoundationApache Ivy2.0.0, unspecified
Mavenorg.apache.ivy:ivy2.0.0
wolfigradle-8*
wolfigradle-stage00
Apache Software FoundationApache Ivy*, 2.0.0
amazon:2apache-ivy-javadoc0
amazon:2023apache-ivy0
chainguardgradle-stage00
amazon:2apache-ivy0
chainguardgradle-8*
amazon:2023apache-ivy-javadoc0

Timeline

  • Nov 7, 2022 CVE Published
  • Nov 8, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 17, 2026 Security Advisory (26 in total, the first dated here)
  • Jun 19, 2026 Coalition ESS Score
  • Nov 22, 2026 Distribution Patch (25 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-37866
vulnetix vdb fixes CVE-2022-37866

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-37866/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›