Vulnerability · Published Mar 2, 2025 · Assigned by mitre
CVE-2025-25724
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.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | bsdtar | 3.7.7-3.el10_0 | ALSA-2025:9420 |
| AlmaLinux:9 | bsdtar | 3.5.3-5.el9_6 | ALSA-2025:9431 |
| AlmaLinux:10 | libarchive | 3.7.7-3.el10_0 | ALSA-2025:9420 |
| AlmaLinux:9 | libarchive | 3.5.3-5.el9_6 | ALSA-2025:9431 |
| AlmaLinux:10 | libarchive-devel | 3.7.7-3.el10_0 | ALSA-2025:9420 |
| AlmaLinux:9 | libarchive-devel | 3.5.3-5.el9_6 | ALSA-2025:9431 |
| Alpine:v3.20 | libarchive | 3.7.9-r0 | ALPINE-CVE-2025-25724 |
| Alpine:v3.21 | libarchive | 3.7.9-r0 | ALPINE-CVE-2025-25724 |
| Alpine:v3.22 | libarchive | 3.7.9-r0 | ALPINE-CVE-2025-25724 |
| Alpine:v3.23 | libarchive | 3.7.9-r0 | ALPINE-CVE-2025-25724 |
| Alpine:v3.24 | libarchive | 3.7.9-r0 | ALPINE-CVE-2025-25724 |
| Debian:12 | libarchive | no fix listed | DEBIAN-CVE-2025-25724 |
| Debian:13 | libarchive | no fix listed | DEBIAN-CVE-2025-25724 |
| Debian:14 | libarchive | 3.8.4-1 | DEBIAN-CVE-2025-25724 |
| Rocky Linux:10 | libarchive | 0:3.7.7-3.el10_0 | RLSA-2025:9420 |
| Rocky Linux:9 | libarchive | 0:3.5.3-5.el9_6 | RLSA-2025:9431 |
| Ubuntu:22.04:LTS | libarchive | 3.6.0-1ubuntu1.4 | USN-7454-1 |
| Ubuntu:22.04:LTS | libarchive | 3.6.0-1ubuntu1.4 | UBUNTU-CVE-2025-25724 |
| Ubuntu:24.04:LTS | libarchive | 3.7.2-2ubuntu0.4 | USN-7454-1 |
| Ubuntu:24.04:LTS | libarchive | 3.7.2-2ubuntu0.4 | UBUNTU-CVE-2025-25724 |
| Ubuntu:25.10 | libarchive | 3.7.7-0ubuntu2.1 | UBUNTU-CVE-2025-25724 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| libarchive | libarchive | 0 – through 3.7.7 |
Weakness: CWE-252 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L