CVE-2022-37866

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

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.

Category

7.5
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.62%
Vendor Advisory fedoraproject.org Vendor Advisory apache.org
Affected: Apache Software Foundation Apache Ivy
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-37866?
CVE-2022-37866 has been scored as a high severity vulnerability.
How to fix CVE-2022-37866?
To fix CVE-2022-37866, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-37866 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2022-37866 is being actively exploited. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-37866?
CVE-2022-37866 affects Apache Software Foundation Apache Ivy.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.