Skip to content

CVE-2024-47877 Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.

MediumCVSS 6.9 EPSS 0.55%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

Extract is aA Go library to extract archives in zip, tar.gz or tar.bz2 formats. A maliciously crafted archive may allow an attacker to create a symlink outside the extraction target directory. This vulnerability is fixed in 4.0.0. If you're using the Extractor.FS interface, then upgrading to /v4 will require to implement the new methods that have been added.

Upgrade path

2 packages: 1 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
codeclysm github.com/codeclysm/extract/v3(Go) < 4.0.0; <= 2.2.0; <= 3.1.1; All versions 4.0.0 Partially fixed
codeclysm github.com/codeclysm/extract/v3 < 4.0.0; = < 4.0.0 4.0.0 Fixed

Affected products

ProductAffected versionsFixed in
codeclysm github.com/codeclysm/extract/v3(Go) <= 3.1.1 No fix listed
codeclysm github.com/codeclysm/extract/v3(Go) < 4.0.0 4.0.0
codeclysm github.com/codeclysm/extract/v3(Go) <= 2.2.0 No fix listed
codeclysm github.com/codeclysm/extract/v3(Go) All versions No fix listed
codeclysm github.com/codeclysm/extract/v3 = < 4.0.0 No fix listed
codeclysm github.com/codeclysm/extract/v3 < 4.0.0 4.0.0

References