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

EcosystemPackageFixed inAdvisory
AlmaLinux:10bsdtar3.7.7-2.el10_0ALSA-2025:7510
AlmaLinux:10libarchive3.7.7-2.el10_0ALSA-2025:7510
AlmaLinux:10libarchive-devel3.7.7-2.el10_0ALSA-2025:7510
Alpine:v3.20libarchive3.7.9-r0ALPINE-CVE-2024-57970
Alpine:v3.21libarchive3.7.9-r0ALPINE-CVE-2024-57970
Alpine:v3.22libarchive3.7.9-r0ALPINE-CVE-2024-57970
Alpine:v3.23libarchive3.7.9-r0ALPINE-CVE-2024-57970
Alpine:v3.24libarchive3.7.9-r0ALPINE-CVE-2024-57970
Rocky Linux:10libarchive0:3.7.7-2.el10_0RLSA-2025:7510

Affected products (as reported)

VendorProductVersions
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

References