7.5high
Apache Ivy allows path traversal in the presence of a malicious repository
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.91% (higher than 80% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-wv7w-rj2x-556x
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Ivy | from 2.0.0 before unspecified, from unspecified up to 2.5.0 | CVE List |
| org.apache.ivy:ivy (Maven) | from 2.0.0 before 2.5.1 | GitHub Advisory Database |
| apache ivy | from 2.0.0 before 2.5.1 | NVD |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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 versions 2.0.0 to 2.5.1 should upgrade to Ivy 2.5.1.
NVD (es)
Cuando Apache Ivy descarga artefactos de un repositorio, los almacena en el sistema de archivos local según un "patrón" proporcionado por el usuario que puede incluir marcadores de posición para las coordenadas de los artefactos, como la organización, el módulo o la versión. Si dichas coordenadas contienen secuencias "../", que son caracteres válidos para las coordenadas de Ivy en general, es posible que los artefactos se almacenen fuera del caché o repositorio local de Ivy o puedan sobrescribir diferentes artefactos dentro del caché local. Para aprovechar esta vulnerabilidad, un atacante necesita la colaboración del repositorio remoto, ya que Ivy emitirá solicitudes http que contienen secuencias ".." y un repositorio "normal" no las interpretará como parte de las coordenadas del artefacto. Los usuarios de Apache Ivy 2.0.0 a 2.5.1 deben actualizar a Ivy 2.5.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-37866 changed 2025-05-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wv7w-rj2x-556x changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2022-37866 changed 2026-06-17 | Public domain |