Cyber Resilience

CVE-2025-25724

Libarchive ≤ 3.7.7

Public PoC
Published
02 March 2025
Modified
17 July 2025
Patch / advisory
CVSS Score v3.1 4.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
EPSS Score 0.0036 29th percentile
Risk Priority 33 floored blend · peak EPSS

Summary

CVE-2025-25724 is a medium-severity Unchecked Return Value (CWE-252) vulnerability in Libarchive Libarchive. Its CVSS base score is 4.0 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 29th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-15 (Development Process, Standards, and Tools) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2025-25724 is a vulnerability in the list_item_verbose function within tar/util.c of libarchive through version 3.7.7. The issue stems from a failure to check the return value of strftime, which can result in a denial of service or unspecified other impact when processing a crafted TAR archive using verbose output level 2. For example, a custom locale may exceed the 100-byte buffer allocated for the operation.

Exploitation requires local access (AV:L) with high attack complexity (AC:H), no privileges (PR:N), and no user interaction (UI:N), as indicated by the CVSS v3.1 base score of 4.0 (C:N/I:L/A:L/S:U). A local attacker can thus trigger low-impact integrity and availability effects, such as denial of service, through a malicious TAR file.

Proof-of-concept code demonstrating the issue is available at https://gist.github.com/Ekkosun/a83870ce7f3b7813b9b462a395e8ad92 and https://github.com/Ekkosun/pocs/blob/main/bsdtarbug. The vulnerable source code lines are visible in the libarchive repository at https://github.com/libarchive/libarchive/blob/b439d586f53911c84be5e380445a8a259e19114c/tar/util.c#L751-L752.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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.…

more

For example, the 100-byte buffer may not be sufficient for a custom locale.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-48957Same product: Libarchive Libarchive
CVE-2024-48958Same product: Libarchive Libarchive
CVE-2024-37407Same product: Libarchive Libarchive
CVE-2025-1632Same product: Libarchive Libarchive
CVE-2023-30571Same product: Libarchive Libarchive
CVE-2024-48615Same product: Libarchive Libarchive
CVE-2025-60753Same product: Libarchive Libarchive
CVE-2025-5915Same product: Libarchive Libarchive
CVE-2025-5918Same product: Libarchive Libarchive
CVE-2025-5916Same product: Libarchive Libarchive

Affected Assets

libarchive
libarchive
≤ 3.7.7

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and code evaluation can discover instances where return values are ignored.

Requiring a documented development process and coding standards can mandate explicit checking of all function return values.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require checking and handling all function return values to detect error conditions.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development and acceptance can detect missing return-value checks.

prevents

Secure development life cycle mandates verification of return values to prevent undetected failures.

prevents

Application security requirements include input/output validation and error handling that covers return-value checks.

degrades

Secure system architecture and engineering principles require robust error handling and defensive coding practices.

prevents

Secure coding explicitly requires checking return values to avoid CWE-252.

References