CVE-2024-47877
published medium CVSS 4.0 · 6.9Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| codeclysm | — | extract< 4.0.0 | Affected | Not stated | GitHub_M |
| codeclysm | — | extract0 to < 4.0.0 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| SUSE / openSUSE | SLE-15-SP5 | govulncheck-vulndbnoarch | Advisory build | 0.0.20241030T212825-150000.1.9.1 | SUSE-SU-2024:3911-1 |
| SUSE / openSUSE | SLE-15-SP6 | govulncheck-vulndbnoarch | Advisory build | 0.0.20241030T212825-150000.1.9.1 | SUSE-SU-2024:3911-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | govulncheck-vulndbnoarch | Advisory build | 0.0.20241030T212825-150000.1.9.1 | SUSE-SU-2024:3911-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | govulncheck-vulndbnoarch | Advisory build | 0.0.20241030T212825-150000.1.9.1 | SUSE-SU-2024:3911-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbaarch64 | Advisory build | 0.0.20241030T212825-1.1 | OPENSUSE-SU-2024:14447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbppc64le | Advisory build | 0.0.20241030T212825-1.1 | OPENSUSE-SU-2024:14447-1 |
Show 2 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbs390x | Advisory build | 0.0.20241030T212825-1.1 | OPENSUSE-SU-2024:14447-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbx86_64 | Advisory build | 0.0.20241030T212825-1.1 | OPENSUSE-SU-2024:14447-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| codeclysm | extract | < 4.0.0 (affected) | GitHub_M · cna |
| codeclysm | extract | 0 to < 4.0.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
2- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-61 CWE-61: UNIX Symbolic Link (Symlink) Following
References
2Provider assertions
2GitHub_M · cna
Extract has insufficient checks allowing attacker to create symlinks outside the extraction directory.
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 67ddf540d5925b97b6da32f9e9ae586ce7951c25348bdc7cfbcefcf7672d8eda
- Ingested
- 23 Sep 2026, 08:28:35 UTC
- Source record
- Official CVE record