CVE-2024-57970
libarchive through 3.7.7 has a heap-based buffer over-read in header_gnu_longlink in...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
4.0
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.
- Record
CVE-2024-57970- CVSS 3.1
- 4.0 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-126
- Updated
- 2026-11-02
EUVDEUVD-2024-53870
4.0
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.
- Record
EUVD-2024-53870- CVSS 3.1
- 4.0 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-2q66-6w43-8rm9
4.0
libarchive through 3.7.7 has a heap-based buffer over-read in header_gnu_longlink in...
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.
- Record
GHSA-2q66-6w43-8rm9- CVSS 3.1
- 4.0 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-126
- Updated
- 2026-11-02
NVD
4.0
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.
- Record
CVE-2024-57970- CVSS 3.1
- 4.0 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-126
- Updated
- 2026-11-02
OSVALPINE-CVE-2024-57970
4.0
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.
- Record
ALPINE-CVE-2024-57970- CVSS 3.1
- 4.0 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVBELL-CVE-2024-57970
4.0
- Record
BELL-CVE-2024-57970- CVSS 3.1
- 4.0 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
Show 6 moreShow less
OSV
4.0
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.
- Record
CVE-2024-57970- CVSS 3.1
- 4.0 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-126
- Updated
- 2026-11-02
OSVJLSEC-2025-250
4.0
libarchive through 3.7.7 has a heap-based buffer over-read in `header_gnu_longlink` in...
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.
- Record
JLSEC-2025-250- CVSS 3.1
- 4.0 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVRHSA-2025:7510
4.0
Red Hat Security Advisory: libarchive security update
- Record
RHSA-2025:7510- CVSS 3.1
- 4.0 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVRLSA-2025:7510
4.0
Moderate: libarchive security update
The libarchive programming library can create and read several different streaming archive formats, including GNU tar, cpio, and ISO 9660 CD-ROM images. Libarchive is used notably in the bsdtar utility, scripting language bindings such as python-libarchive, and several popular desktop file managers.
Security Fix(es):
- libarchive: heap buffer over-read in header_gnu_longlink (CVE-2024-57970)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
RLSA-2025:7510- CVSS 3.1
- 4.0 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVALSA-2025:7510 No score
Moderate: libarchive security update
The libarchive programming library can create and read several different streaming archive formats, including GNU tar, cpio, and ISO 9660 CD-ROM images. Libarchive is used notably in the bsdtar utility, scripting language bindings such as python-libarchive, and several popular desktop file managers.
Security Fix(es):
- libarchive: heap buffer over-read in header_gnu_longlink (CVE-2024-57970)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
ALSA-2025:7510- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:14844-1 No score
bsdtar-3.7.7-2.1 on GA media
These are all security issues fixed in the bsdtar-3.7.7-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:14844-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libarchiveAlpine:v3.18 |
before 3.7.9-r0 | 3.7.9-r0 |
libarchiveAlpine:v3.19 |
before 3.7.9-r0 | 3.7.9-r0 |
libarchiveAlpine:v3.20 |
before 3.7.9-r0 | 3.7.9-r0 |
libarchiveAlpine:v3.21 |
before 3.7.9-r0 | 3.7.9-r0 |
libarchiveAlpine:v3.22 |
before 3.7.9-r0 | 3.7.9-r0 |
libarchiveAlpine:v3.23 |
before 3.7.9-r0 | 3.7.9-r0 |
libarchiveAlpine:v3.24 |
before 3.7.9-r0 | 3.7.9-r0 |
bsdtarAlmaLinux:10 |
before 3.7.7-2.el10_0 | 3.7.7-2.el10_0 |
libarchiveAlmaLinux:10 |
before 3.7.7-2.el10_0 | 3.7.7-2.el10_0 |
libarchive-develAlmaLinux:10 |
before 3.7.7-2.el10_0 | 3.7.7-2.el10_0 |
Show 14 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libarchiveAlpaquita:23 |
3.6.1-r1 up to 3.7.9-r0 | 3.7.9-r0 |
libarchiveAlpaquita:stream |
3.6.2-r1 up to 3.7.9-r0 | 3.7.9-r0 |
LibArchive_jllJulia |
before 3.7.9+0 | 3.7.9+0 |
bsdcat-debuginfoRed Hat:enterprise_linux:10.0 |
before 0:3.7.7-2.el10_0 | 0:3.7.7-2.el10_0 |
bsdcpio-debuginfoRed Hat:enterprise_linux:10.0 |
before 0:3.7.7-2.el10_0 | 0:3.7.7-2.el10_0 |
bsdtarRed Hat:enterprise_linux:10.0 |
before 0:3.7.7-2.el10_0 | 0:3.7.7-2.el10_0 |
bsdtar-debuginfoRed Hat:enterprise_linux:10.0 |
before 0:3.7.7-2.el10_0 | 0:3.7.7-2.el10_0 |
bsdunzip-debuginfoRed Hat:enterprise_linux:10.0 |
before 0:3.7.7-2.el10_0 | 0:3.7.7-2.el10_0 |
libarchive-debuginfoRed Hat:enterprise_linux:10.0 |
before 0:3.7.7-2.el10_0 | 0:3.7.7-2.el10_0 |
libarchive-debugsourceRed Hat:enterprise_linux:10.0 |
before 0:3.7.7-2.el10_0 | 0:3.7.7-2.el10_0 |
libarchive-develRed Hat:enterprise_linux:10.0 |
before 0:3.7.7-2.el10_0 | 0:3.7.7-2.el10_0 |
libarchiveRed Hat:enterprise_linux:10.0 |
before 0:3.7.7-2.el10_0 | 0:3.7.7-2.el10_0 |
libarchiveRocky Linux:10 |
before 0:3.7.7-2.el10_0 | 0:3.7.7-2.el10_0 |
libarchiveopenSUSE:Tumbleweed |
before 3.7.7-2.1 | 3.7.7-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-57970 is a medium vulnerability (CVSS 4.0) in Libarchive, published February 16, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.25%, the 16th percentile. Fixed in libarchive 3.7.9-r0.
References
github.com/libarchive/libarchive/issues/2415
github.com/libarchive/libarchive/pull/2422
nvd.nist.gov/vuln/detail/CVE-2024-57970
github.com/advisories/GHSA-2q66-6w43-8rm9
security.alpinelinux.org/vuln/CVE-2024-57970
access.redhat.com/errata/RHSA-2025:7510
Show 13 moreShow less
access.redhat.com/security/cve/CVE-2024-57970
bugzilla.redhat.com/2345954
errata.almalinux.org/10/ALSA-2025-7510.html
docs.bell-sw.com/security/cves/CVE-2024-57970
docs.bell-sw.com/security/advisories/BELL-SA-2025-6
github.com/CVEProject/cvelistV5/tree/main/cves/2024/57xxx/CVE-2024-57970.json
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2345954
security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_7510.json
cve.org/CVERecord?id=CVE-2024-57970
errata.rockylinux.org/RLSA-2025:7510
lists.opensuse.org/archives/list/[email protected]/thread/RH5NHSWEEGIGORCHOWYXBR3HCGWHTZPR
suse.com/security/cve/CVE-2024-57970