Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2023-35946

Опубликовано: 30 июн. 2023
Источник: redhat
CVSS3: 5.5
EPSS Низкий

Описание

Gradle is a build tool with a focus on build automation and support for multi-language development. When Gradle writes a dependency into its dependency cache, it uses the dependency's coordinates to compute a file location. With specially crafted dependency coordinates, Gradle can be made to write files into an unintended location. The file may be written outside the dependency cache or over another file in the dependency cache. This vulnerability could be used to poison the dependency cache or overwrite important files elsewhere on the filesystem where the Gradle process has write permissions. Exploiting this vulnerability requires an attacker to have control over a dependency repository used by the Gradle build or have the ability to modify the build's configuration. It is unlikely that this would go unnoticed. A fix has been released in Gradle 7.6.2 and 8.2 to protect against this vulnerability. Gradle will refuse to cache dependencies that have path traversal elements in their dependency coordinates. It is recommended that users upgrade to a patched version. If you are unable to upgrade to Gradle 7.6.2 or 8.2, dependency verification will make this vulnerability more difficult to exploit.

A flaw was found in Gradle that permits directory traversal in its evaluation of repository paths. This issue could allow a local attacker to overwrite a file in the dependency cache with malicious code.

Меры по смягчению последствий

Users unable to upgrade should use dependency verification to make this vulnerability more difficult to exploit.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat JBoss Enterprise Application Platform 6gradleOut of support scope
Red Hat JBoss Enterprise Application Platform 7gradleNot affected
Red Hat JBoss Enterprise Application Platform Expansion PackgradleNot affected
Red Hat Software Collectionsrh-maven36-byte-buddyWill not fix

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-22
Дефект:
CWE-829
https://bugzilla.redhat.com/show_bug.cgi?id=2219505gradle: Dependency cache path traversal

EPSS

Процентиль: 29%
0.00106
Низкий

5.5 Medium

CVSS3

Связанные уязвимости

CVSS3: 6.9
ubuntu
больше 2 лет назад

Gradle is a build tool with a focus on build automation and support for multi-language development. When Gradle writes a dependency into its dependency cache, it uses the dependency's coordinates to compute a file location. With specially crafted dependency coordinates, Gradle can be made to write files into an unintended location. The file may be written outside the dependency cache or over another file in the dependency cache. This vulnerability could be used to poison the dependency cache or overwrite important files elsewhere on the filesystem where the Gradle process has write permissions. Exploiting this vulnerability requires an attacker to have control over a dependency repository used by the Gradle build or have the ability to modify the build's configuration. It is unlikely that this would go unnoticed. A fix has been released in Gradle 7.6.2 and 8.2 to protect against this vulnerability. Gradle will refuse to cache dependencies that have path traversal elements in their d...

CVSS3: 6.9
nvd
больше 2 лет назад

Gradle is a build tool with a focus on build automation and support for multi-language development. When Gradle writes a dependency into its dependency cache, it uses the dependency's coordinates to compute a file location. With specially crafted dependency coordinates, Gradle can be made to write files into an unintended location. The file may be written outside the dependency cache or over another file in the dependency cache. This vulnerability could be used to poison the dependency cache or overwrite important files elsewhere on the filesystem where the Gradle process has write permissions. Exploiting this vulnerability requires an attacker to have control over a dependency repository used by the Gradle build or have the ability to modify the build's configuration. It is unlikely that this would go unnoticed. A fix has been released in Gradle 7.6.2 and 8.2 to protect against this vulnerability. Gradle will refuse to cache dependencies that have path traversal elements in their depe

CVSS3: 6.9
debian
больше 2 лет назад

Gradle is a build tool with a focus on build automation and support fo ...

suse-cvrf
больше 1 года назад

Security update for gradle

EPSS

Процентиль: 29%
0.00106
Низкий

5.5 Medium

CVSS3