CVE-2025-25724 Denial of service in libarchive
A crafted TAR archive can cause a denial of service in libarchive due to unchecked strftime return values during verbose listing.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-25724?
CVE-2025-25724 is a medium-severity denial of service vulnerability in Libarchive Libarchive, published on 2 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
list_item_verbose in tar/util.c in libarchive through 3.7.7 does not check an strftime return value, which can lead to a denial of service or unspecified other impact via a crafted TAR archive that is read with a verbose value of 2. For example, the 100-byte buffer may not be sufficient for a custom locale.
Weakness: CWE-252
Which versions are affected by CVE-2025-25724?
It affects 1 product.
Linux distribution packages (40)
bsdtar AlmaLinux:10 | All versions | 3.7.7-3.el10_0 |
libarchive AlmaLinux:10 | All versions | 3.7.7-3.el10_0 |
libarchive-devel AlmaLinux:10 | All versions | 3.7.7-3.el10_0 |
bsdtar AlmaLinux:9 | All versions | 3.5.3-5.el9_6 |
libarchive AlmaLinux:9 | All versions | 3.5.3-5.el9_6 |
libarchive-devel AlmaLinux:9 | All versions | 3.5.3-5.el9_6 |
bsdcat-debuginfo Red Hat:enterprise_linux:10.0 | All versions | 0:3.7.7-3.el10_0 |
bsdcpio-debuginfo Red Hat:enterprise_linux:10.0 | All versions | 0:3.7.7-3.el10_0 |
bsdtar Red Hat:enterprise_linux:10.0 | All versions | 0:3.7.7-3.el10_0 |
bsdtar-debuginfo Red Hat:enterprise_linux:10.0 | All versions | 0:3.7.7-3.el10_0 |
bsdunzip-debuginfo Red Hat:enterprise_linux:10.0 | All versions | 0:3.7.7-3.el10_0 |
libarchive Red Hat:enterprise_linux:10.0 | All versions | 0:3.7.7-3.el10_0 |
libarchive-debuginfo Red Hat:enterprise_linux:10.0 | All versions | 0:3.7.7-3.el10_0 |
libarchive-debugsource Red Hat:enterprise_linux:10.0 | All versions | 0:3.7.7-3.el10_0 |
libarchive-devel Red Hat:enterprise_linux:10.0 | All versions | 0:3.7.7-3.el10_0 |
bsdcat-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:3.5.3-5.el9_6 |
bsdcpio-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:3.5.3-5.el9_6 |
bsdtar Red Hat:enterprise_linux:9::appstream | All versions | 0:3.5.3-5.el9_6 |
bsdtar-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:3.5.3-5.el9_6 |
libarchive-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:3.5.3-5.el9_6 |
libarchive-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:3.5.3-5.el9_6 |
libarchive-devel Red Hat:enterprise_linux:9::appstream | All versions | 0:3.5.3-5.el9_6 |
bsdcat-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:3.5.3-5.el9_6 |
bsdcpio-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:3.5.3-5.el9_6 |
bsdtar-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:3.5.3-5.el9_6 |
libarchive Red Hat:enterprise_linux:9::baseos | All versions | 0:3.5.3-5.el9_6 |
libarchive-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:3.5.3-5.el9_6 |
libarchive-debugsource Red Hat:enterprise_linux:9::baseos | All versions | 0:3.5.3-5.el9_6 |
bsdcat-debuginfo Red Hat:rhel_e4s:9.4::appstream | All versions | 0:3.5.3-5.el9_4.1 |
bsdcpio-debuginfo Red Hat:rhel_e4s:9.4::appstream | All versions | 0:3.5.3-5.el9_4.1 |
bsdtar Red Hat:rhel_e4s:9.4::appstream | All versions | 0:3.5.3-5.el9_4.1 |
bsdtar-debuginfo Red Hat:rhel_e4s:9.4::appstream | All versions | 0:3.5.3-5.el9_4.1 |
libarchive-debuginfo Red Hat:rhel_e4s:9.4::appstream | All versions | 0:3.5.3-5.el9_4.1 |
libarchive-debugsource Red Hat:rhel_e4s:9.4::appstream | All versions | 0:3.5.3-5.el9_4.1 |
libarchive-devel Red Hat:rhel_e4s:9.4::appstream | All versions | 0:3.5.3-5.el9_4.1 |
bsdcat-debuginfo Red Hat:rhel_e4s:9.4::baseos | All versions | 0:3.5.3-5.el9_4.1 |
bsdcpio-debuginfo Red Hat:rhel_e4s:9.4::baseos | All versions | 0:3.5.3-5.el9_4.1 |
bsdtar-debuginfo Red Hat:rhel_e4s:9.4::baseos | All versions | 0:3.5.3-5.el9_4.1 |
libarchive Red Hat:rhel_e4s:9.4::baseos | All versions | 0:3.5.3-5.el9_4.1 |
libarchive-debuginfo Red Hat:rhel_e4s:9.4::baseos | All versions | 0:3.5.3-5.el9_4.1 |
Products include Libarchive Libarchive.
How do I fix CVE-2025-25724?
Upgrade to a fixed version.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-25724 being exploited?
There is no known exploitation of CVE-2025-25724 in the wild and no public exploit code.
Other vulnerabilities in Libarchive Libarchive
Sources
Also known as ALPINE-CVE-2025-25724, ALSA-2025:9420, ALSA-2025:9431, AZL-57712, AZL-57720, BELL-CVE-2025-25724 and 20 more.