{"id":"CVE-2022-37866","published":"2022-11-07T00:00:00Z","modified":"2025-05-01T20:46:04Z","title":"Apache Ivy allows path traversal in the presence of a malicious repository","vendor":"Apache","product":"Apache Ivy","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01906,"percentile":0.80252,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://lists.apache.org/thread/htxbr8oc464hxrgroftnz3my70whk93b","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YDIFDL5WSBEKBUVKTABUFDDD25SBNJLS/","tags":["vendor-advisory"]}],"priority":{"score":21.3,"factors":[{"name":"EPSS percentile","points":16.05},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Ivy","versions":[">= 2.0.0, < unspecified",">= unspecified, <= 2.5.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-05-01T20:46:00.339895Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.apache.ivy:ivy","vulnerableRanges":[">=2.0.0, <2.5.1"],"patched":["2.5.1"],"from":["GHSA-wv7w-rj2x-556x"],"provenance":"source"}],"summary":{"text":"Apache Ivy, the Java dependency manager, contains a path traversal flaw in its artifact storage logic: when Ivy downloads artifacts, it writes them to the local file system using a user-supplied pattern whose organisation, module, or version placeholders can contain \"../\" sequences. An attacker can exploit this when a remote repository cooperates by serving artifacts whose coordinates contain \"../\" sequences, which lets them write files outside Ivy's local cache or overwrite other cached artifacts, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:43Z"},"euvd":{"id":"EUVD-2022-7457","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-37865","published":"2022-11-07","fixed":"2.5.1","kev":false},{"cve":"CVE-2022-37866","published":"2022-11-07","fixed":"2.5.1","kev":false},{"cve":"CVE-2022-46751","published":"2023-08-21","fixed":"2.5.2","kev":false,"link":{"from":"CVE-2022-37866","to":"CVE-2022-46751","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.ivy:ivy","fromFixed":"2.5.1","toFixed":"2.5.2","daysApart":287}]}}],"package":"Maven:org.apache.ivy:ivy"}}