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

exploitDog

github логотип

GHSA-hfg8-hc9c-6c3h

Опубликовано: 18 авг. 2026
Источник: github
Github: Прошло ревью
CVSS4: 7.1

Описание

moby/go-archive: Crafted tar archive can write outside the extraction directory

Summary

The tar extraction routines in moby/go-archive (Unpack, UnpackLayer, Untar/UntarUncompressed, and the ApplyLayer helpers) do not confine filesystem operations to the destination directory. A crafted archive can create or overwrite files outside the intended destination.

Details

The extractor decides where each archive entry lands using lexical string checks and then performs the filesystem operation on a path that is resolved by the OS, so a links introduced by the archive can be followed out of the destination directory.

Impact

An attacker who controls the contents of archive can create or overwrite files at arbitrary paths writable by the extracting process.

Workarounds

Only extract trusted archives.

Пакеты

Наименование

github.com/moby/go-archive

go
Затронутые версииВерсия исправления

< 0.3.0

0.3.0

EPSS

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

7.1 High

CVSS4

Дефекты

CWE-22
CWE-59

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

ubuntu
4 дня назад

(The tar extraction routines in moby/go-archive (Unpack, UnpackLayer, U ...)

nvd
4 дня назад

The tar extraction routines in moby/go-archive (Unpack, UnpackLayer, Untar/UntarUncompressed, and the ApplyLayer helpers) do not confine filesystem operations to the destination directory. The extractor decides where each archive entry lands using lexical string checks and then performs the filesystem operation on a path that is resolved by the OS, so links introduced by the archive can be followed out of the destination directory. An attacker who controls the contents of an archive can create or overwrite files at arbitrary paths writable by the extracting process.

debian
4 дня назад

The tar extraction routines in moby/go-archive (Unpack, UnpackLayer, U ...

EPSS

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

7.1 High

CVSS4

Дефекты

CWE-22
CWE-59