Directory Traversal Affecting gradle-stage0 package, versions <8.0.1-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.53% (65th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CHAINGUARDLATEST-GRADLESTAGE0-9538808
  • published28 Mar 2025
  • disclosed7 Nov 2022

Introduced: 7 Nov 2022

CVE-2022-37866  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Chainguard gradle-stage0 to version 8.0.1-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream gradle-stage0 package and not the gradle-stage0 package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1