CVEfocus › CVE database › CVE-2024-57970

CVE-2024-57970

CVSS 4.0 MediumEPSS 0.3% (higher than 13% of CVEs)Published 2025-02-16Updated 2025-02-18Assigner: mitre

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.

CWE-126

What to do

Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

14Fixed
9Will not fix
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04libarchiveNot affected
vulnerable_code_not_present
Ubuntu 22.04libarchiveNot affected
vulnerable_code_not_present
Red Hat Enterprise Linux 10bsdtarFixed0:3.7.7-2.el10_0RHSA-2025:7510
Red Hat Enterprise Linux 10libarchiveFixed0:3.7.7-2.el10_0RHSA-2025:7510
Red Hat Enterprise Linux 10libarchive-develFixed0:3.7.7-2.el10_0RHSA-2025:7510
Red Hat Enterprise Linux 9bsdtarNot affected
Red Hat Enterprise Linux 9libarchiveNot affected
Red Hat Enterprise Linux 9libarchive-develNot affected
Red Hat Enterprise Linux 8bsdtarWill not fix
Out of support scope
Red Hat Enterprise Linux 8libarchiveWill not fix
Out of support scope
Red Hat Enterprise Linux 8libarchive-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7bsdcpioWill not fix
Out of support scope
Red Hat Enterprise Linux 7bsdtarWill not fix
Out of support scope
Red Hat Enterprise Linux 7libarchiveWill not fix
Out of support scope
Red Hat Enterprise Linux 7libarchive-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6libarchiveWill not fix
Out of support scope
Red Hat Enterprise Linux 6libarchive-develWill not fix
Out of support scope
AlmaLinux 10bsdtarFixed3.7.7-2.el10_0ALSA-2025:7510
AlmaLinux 10libarchiveFixed3.7.7-2.el10_0ALSA-2025:7510
AlmaLinux 10libarchive-develFixed3.7.7-2.el10_0ALSA-2025:7510
Rocky Linux 10libarchiveFixed0:3.7.7-2.el10_0RLSA-2025:7510
Alpine Linux 3.24libarchiveFixed3.7.9-r0ALPINE-CVE-2024-57970
Alpine Linux 3.23libarchiveFixed3.7.9-r0ALPINE-CVE-2024-57970
Alpine Linux 3.22libarchiveFixed3.7.9-r0ALPINE-CVE-2024-57970
Alpine Linux 3.21libarchiveFixed3.7.9-r0ALPINE-CVE-2024-57970
Alpine Linux 3.20libarchiveFixed3.7.9-r0ALPINE-CVE-2024-57970
Alpine Linux 3.19libarchiveFixed3.7.9-r0ALPINE-CVE-2024-57970
Alpine Linux 3.18libarchiveFixed3.7.9-r0ALPINE-CVE-2024-57970

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.