cve.bz

CVE-2025-25724 libarchive libarchive: Unchecked Return Value

7.8 highExploit referenceEPSS 0.4%

High (7.8) in libarchive libarchive. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 31st percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-03-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-252 Unchecked Return Value
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-25724 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-25724?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-25724?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-25724 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
libarchivethrough 3.7.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13libarchiveno fix listedDEBIAN-CVE-2025-25724
Debian14libarchive3.8.4-1DEBIAN-CVE-2025-25724
Ubuntu20.04:LTSlibarchive3.4.0-2ubuntu1.5UBUNTU-CVE-2025-25724 USN-7454-1
Ubuntu22.04:LTSlibarchive3.6.0-1ubuntu1.4UBUNTU-CVE-2025-25724 USN-7454-1
Ubuntu24.04:LTSlibarchive3.7.2-2ubuntu0.4UBUNTU-CVE-2025-25724 USN-7454-1
Ubuntu25.10libarchive3.7.7-0ubuntu2.1UBUNTU-CVE-2025-25724
UbuntuPro:14.04:LTSlibarchive3.1.2-7ubuntu2.8+esm4UBUNTU-CVE-2025-25724
UbuntuPro:16.04:LTSlibarchive3.1.2-11ubuntu0.16.04.8+esm2UBUNTU-CVE-2025-25724
UbuntuPro:18.04:LTSlibarchive3.2.2-3.1ubuntu0.7+esm2UBUNTU-CVE-2025-25724
Red Hatenterprise_linux:9::appstreambsdtar, bsdcat-debuginfo, bsdtar-debuginfo and 4 more0:3.5.3-5.el9_6RHSA-2025:9431
Red Hatenterprise_linux:9::baseoslibarchive, bsdcat-debuginfo, bsdtar-debuginfo and 3 more0:3.5.3-5.el9_6RHSA-2025:9431
Red Hatenterprise_linux:10.0bsdtar, libarchive, bsdcat-debuginfo and 6 more0:3.7.7-3.el10_0RHSA-2025:9420
Red Hatrhel_e4s:9.4::appstreambsdtar, bsdcat-debuginfo, bsdtar-debuginfo and 4 more0:3.5.3-5.el9_4.1RHSA-2026:24383
Red Hatrhel_e4s:9.4::baseoslibarchive, bsdcat-debuginfo, bsdtar-debuginfo and 3 more0:3.5.3-5.el9_4.1RHSA-2026:24383
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5libarchive3.5.1-150400.3.18.1SUSE-SU-2025:0986-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Development Tools 15 SP6libarchive3.7.2-150600.3.12.1SUSE-SU-2025:0985-1
SUSELinux Micro 6.1libarchive3.7.4-slfo.1.1_2.1SUSE-SU-2025:20257-1
openSUSELeap 15.6libarchive3.7.2-150600.3.12.1SUSE-SU-2025:0985-1
openSUSETumbleweedlibarchive3.7.7-3.1openSUSE-SU-2025:14882-1
AlmaLinux9bsdtar, libarchive, libarchive-devel3.5.3-5.el9_6ALSA-2025:9431
AlmaLinux10bsdtar, libarchive, libarchive-devel3.7.7-3.el10_0ALSA-2025:9420
Rocky Linux9libarchive0:3.5.3-5.el9_6RLSA-2025:9431
Rocky Linux10libarchive0:3.7.7-3.el10_0RLSA-2025:9420
Alpinev3.18, v3.19, v3.20 and 4 morelibarchive3.7.9-r0ALPINE-CVE-2025-25724
Azure Linux2libarchive3.6.1-5AZL-57720
Azure Linux3libarchive3.7.7-2AZL-57712
Alpaquita23, streamlibarchive3.7.9-r0BELL-CVE-2025-25724

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat employs static and dynamic security testing and numerous program hardening technologies as part of our Secure Development Lifecycle. These tests and means of hardening our software prevent or reduce the impact of flaws and increase the complexity of attacks.

Return values from critical operations are consistently evaluated through enforced development standards and automated static analysis, reducing the likelihood of logic flaws or silent failures reaching production. Error-handling routines are integrated into application behavior to ensure that failures are properly logged, traced, and contained, maintaining system stability under fault conditions. Additionally, the platform is designed to respond to errors predictably, preventing uncontrolled behavior and ensuring that processes fail in a known, recoverable state.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libarchive-0:3.7.7-3.el10_0Fixed 2025-06-24RHSA-2025:9420
Red Hat Enterprise Linux 9libarchive-0:3.5.3-5.el9_6Fixed 2025-06-24RHSA-2025:9431
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionslibarchive-0:3.5.3-5.el9_4.1Fixed 2026-06-08RHSA-2026:24383
Red Hat Discovery 2discovery/discovery-server-rhel9:2.0.0-1752592913Fixed 2025-07-21RHSA-2025:11487
Red Hat Enterprise Linux 6libarchiveOut of support scope
Red Hat Enterprise Linux 7libarchiveOut of support scope
Red Hat Enterprise Linux 8libarchiveOut of support scope
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-25724.

References

Check your stackJSON