Vulnerability · Published Feb 16, 2025 · Assigned by mitre
CVE-2024-57970
Medium 4.0
In plain English
A medium-severity security flaw in libarchive from libarchive. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 16% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)4.0Medium
Exploit odds (30 days)0.2%top 83.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
libarchive through 3.7.7 has a heap-based buffer over-read in header_gnu_longlink in archive_read_support_format_tar.c via a TAR archive because it mishandles truncation in the middle of a GNU long linkname.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | bsdtar | 3.7.7-2.el10_0 | ALSA-2025:7510 |
| AlmaLinux:10 | libarchive | 3.7.7-2.el10_0 | ALSA-2025:7510 |
| AlmaLinux:10 | libarchive-devel | 3.7.7-2.el10_0 | ALSA-2025:7510 |
| Alpine:v3.20 | libarchive | 3.7.9-r0 | ALPINE-CVE-2024-57970 |
| Alpine:v3.21 | libarchive | 3.7.9-r0 | ALPINE-CVE-2024-57970 |
| Alpine:v3.22 | libarchive | 3.7.9-r0 | ALPINE-CVE-2024-57970 |
| Alpine:v3.23 | libarchive | 3.7.9-r0 | ALPINE-CVE-2024-57970 |
| Alpine:v3.24 | libarchive | 3.7.9-r0 | ALPINE-CVE-2024-57970 |
| Rocky Linux:10 | libarchive | 0:3.7.7-2.el10_0 | RLSA-2025:7510 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| libarchive | libarchive | 0 – through 3.7.7 |
Weakness: CWE-126 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L