Security Resilience

CVE-2023-30571

Race Condition in Libarchive ≤ 3.6.2

Published
29 May 2023
Modified
14 January 2025
CVSS Score v3.1 3.9
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS Score 0.0019 9th percentile
Risk Priority 30 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2023-30571 is a low-severity Race Condition (CWE-362) vulnerability in Libarchive. Its CVSS base score is 3.9 (Low).

Operationally, ranked at the 9th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask() call inside archive_write_disk_posix.c changes the umask of the whole process for a very short period of time; a race condition with another thread can lead to a permanent…

more

umask 0 setting. Such a race condition could lead to implicit directory creation with permissions 0777 (without the sticky bit), which means that any low-privileged local user can delete and rename files inside those directories.

CWE(s)

Related Threats

CVEs Like This One

CVE-2025-25724Same product: Libarchive Libarchive
CVE-2024-37407Same product: Libarchive Libarchive
CVE-2025-60753Same product: Libarchive Libarchive
CVE-2024-48615Same product: Libarchive Libarchive
CVE-2024-48957Same product: Libarchive Libarchive
CVE-2025-1632Same product: Libarchive Libarchive
CVE-2024-48958Same product: Libarchive Libarchive
CVE-2025-5916Same product: Libarchive Libarchive
CVE-2025-5918Same product: Libarchive Libarchive
CVE-2025-5917Same product: Libarchive Libarchive

Affected Assets

libarchive
libarchive
≤ 3.6.2

Mitigating Controls

Likely Mitigating Controls

Our mappings. Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-362

Accurate timestamps from internal clocks enable detection of race conditions by providing reliable event ordering in audit logs.

addresses: CWE-362

Coordination of concurrent security activities reduces the probability that shared resources will be accessed simultaneously without proper synchronization.

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

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect race conditions, but does not prevent them at design or coding time.

prevents

Secure coding standards explicitly forbid unsafe concurrent access patterns and mandate atomic operations or locks.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-362, a class-level weakness, and none of its children carries one either.

References