CVE-2024-57970: libarchive 3.7.8 fixed CVE-2024-57970, CVE-2025-1632, & CVE-2025-25724
libarchive through 3.7.7 has a heap-based buffer over-read in headergnulonglink in archivereadsupportformattar.c via a TAR archive because it mishandles truncation in the middle of a GNU long linkname.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/libarchiveto a version that resolves this vulnerability.Fixed in 3.7.9-r0 - Upgrade
Upgrade
libarchiveto a version that resolves this vulnerability.Fixed in 3.7.8
Event History
Frequently Asked Questions
What is the severity of CVE-2024-57970?
CVE-2024-57970 is classified as a moderate vulnerability due to the potential for heap-based buffer over-reads.
How do I fix CVE-2024-57970?
To fix CVE-2024-57970, upgrade libarchive to version 3.7.8 or later.
What causes the CVE-2024-57970 vulnerability?
CVE-2024-57970 is caused by mishandling truncation during the processing of GNU long linknames in TAR archives.
Which versions of libarchive are affected by CVE-2024-57970?
CVE-2024-57970 affects libarchive versions up to and including 3.7.7.
How can I determine if my system is vulnerable to CVE-2024-57970?
To determine if your system is vulnerable to CVE-2024-57970, check if you are using libarchive version 3.7.7 or earlier.