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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.91%, higher than 80% of CVEs (2026-12-01)
- Published: 2022-11-07T00:00:00.000Z
- Modified: 2026-09-10T03:50:07.685Z
- Also known as: GHSA-wv7w-rj2x-556x
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Ivy: from 2.0.0 before unspecified; from unspecified up to 2.5.0
- org.apache.ivy:ivy (Maven): from 2.0.0 before 2.5.1
- apache ivy: from 2.0.0 before 2.5.1

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://lists.apache.org/thread/htxbr8oc464hxrgroftnz3my70whk93b> (mailing-list, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YDIFDL5WSBEKBUVKTABUFDDD25SBNJLS/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-37866> (advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YDIFDL5WSBEKBUVKTABUFDDD25SBNJLS> (web)

## Sources

- CVE List: [CVE-2022-37866](https://www.cve.org/CVERecord?id=CVE-2022-37866), CVE Terms of Use, modified 2025-05-01
- GitHub Advisory Database: [GHSA-wv7w-rj2x-556x](https://github.com/advisories/GHSA-wv7w-rj2x-556x), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-37866](https://nvd.nist.gov/vuln/detail/CVE-2022-37866), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-37866 · Whole record: https://cve.day/CVE-2022-37866.json · Rebuilt by cve.day 2026-11-25T22:58:16.253Z
