CVE-2022-37866
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.ivy:ivy | Maven Central | 2.5.1 |
| gradle-stage0 | Wolfi | 8.0.1-r0 |
| apache-ivy-javadoc | Amazon Linux | 2.5.1-1.amzn2023.0.1, 2.3.0-4.amzn2.0.1 |
| apache-ivy | Amazon Linux | 2.5.1-1.amzn2023.0.1, 2.3.0-4.amzn2.0.1 |
| gradle-stage0 | Chainguard | 8.0.1-r0 |
| ivy | apache | 2.5.1 |
| Apache Ivy | Apache Software Foundation | unspecified, 2.5.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Ivy | 2.0.0, unspecified |
| Maven | org.apache.ivy:ivy | 2.0.0 |
| wolfi | gradle-8 | * |
| wolfi | gradle-stage0 | 0 |
| Apache Software Foundation | Apache Ivy | *, 2.0.0 |
| amazon:2 | apache-ivy-javadoc | 0 |
| amazon:2023 | apache-ivy | 0 |
| chainguard | gradle-stage0 | 0 |
| amazon:2 | apache-ivy | 0 |
| chainguard | gradle-8 | * |
| amazon:2023 | apache-ivy-javadoc | 0 |
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
References
- FEDORA-2023-35f775fd6e vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-37866 advisory
- https://github.com/advisories/GHSA-wv7w-rj2x-556x advisory