# CVE-2022-37865: Apache Ivy allows creating/overwriting any file on the system

- Severity: Critical 9.1 (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:H`
- 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): 2.15%, higher than 82% of CVEs (2026-12-01)
- Published: 2022-11-07T00:00:00.000Z
- Modified: 2026-06-17T04:55:36.440Z
- Also known as: GHSA-94rr-4jr5-9h2p
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: apache

## Description

With Apache Ivy 2.4.0 an optional packaging attribute has been introduced that allows artifacts to be unpacked on the fly if they used pack200 or zip packaging. For artifacts using the "zip", "jar" or "war" packaging Ivy prior to 2.5.1 doesn't verify the target path when extracting the archive. An archive containing absolute paths or paths that try to traverse "upwards" using ".." sequences can then write files to any location on the local fie system that the user executing Ivy has write access to. Ivy users of version 2.4.0 to 2.5.0 should upgrade to Ivy 2.5.1.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://lists.apache.org/thread/gqvvv7qsm2dfjg6xzsw1s2h08tbr0sdy> (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-37865> (advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YDIFDL5WSBEKBUVKTABUFDDD25SBNJLS> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YDIFDL5WSBEKBUVKTABUFDDD25SBNJLS> (web)

## Sources

- CVE List: [CVE-2022-37865](https://www.cve.org/CVERecord?id=CVE-2022-37865), CVE Terms of Use, modified 2025-05-02
- GitHub Advisory Database: [GHSA-94rr-4jr5-9h2p](https://github.com/advisories/GHSA-94rr-4jr5-9h2p), CC-BY-4.0, modified 2025-05-02
- NVD: [CVE-2022-37865](https://nvd.nist.gov/vuln/detail/CVE-2022-37865), Public domain, modified 2026-06-17

---

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