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

exploitDog

github логотип

GHSA-j95m-rcjp-q69h

Опубликовано: 28 мар. 2025
Источник: github
Github: Прошло ревью
CVSS4: 6

Описание

github.com/jaredallard/archives Has Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Impact

A malicious user could feed a specially crafted archive to this library causing RCE, modification of files or other bad things in the context of whatever user is running this library as, through the program that imports it.

The severity highly depends on the user's permissions and environment it is being ran in (e.g., non root, read only root container would likely have no impact vs running something as root on a production system).

The severity is also dependent on arbitrary archives being passed or not.

Based on the above, severity high was picked to be safe.

Patches

Patched with the help of snyk and gosec in v1.0.1

Workarounds

The only workaround is to manually validate archives before submitting them to this library, however that is not recommended vs upgrading to unaffected versions.

References

https://security.snyk.io/research/zip-slip-vulnerability

Пакеты

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

github.com/jaredallard/archives

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

< 1.0.1

1.0.1

EPSS

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

6 Medium

CVSS4

Дефекты

CWE-22

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

nvd
3 месяца назад

archives is a Go library for extracting archives (tar, zip, etc.). Version 1.0.0 does not prevent a malicious user to feed a specially crafted archive to the library causing RCE, modification of files or other malignancies in the context of whatever the user is running this library as, through the program that imports it. Severity depends on user permissions, environment and how arbitrary archives are passed. This issue is fixed in version 1.0.1.

EPSS

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

6 Medium

CVSS4

Дефекты

CWE-22