BreachSpiderVerified, not vibes

CVE-2023-30571 in Libarchive

Medium 5.3

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 umask 0 setting. Such a race condition could lead ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.15.3
EPSS0.2%
EPSS percentile6th
FixUnknown

Requires local access, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Libarchive Libarchive ≤ 3.6.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2023-30571
BreachSpider IDBS-2023-GLOBAL-058653-M
CVSS vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Published2023-05-29
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-362: Race Condition

Software behavior depends on event timing that is not enforced, allowing attackers to exploit the timing window.

Related attack patterns (CAPEC)

CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-362

CAPEC-26 Leveraging Race Conditions via CWE-362

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Libarchive through version 3.6.2 is vulnerable to a race condition that can lead to directories being created with world-writable permissions, potentially allowing unauthorized access to sensitive data.

The vulnerability arises from a race condition in the umask() call within the archive_write_disk_posix.c function. If another thread modifies the umask during this short period, it could result in directories being created with 0777 permissions, which are world-writable.

Questions

What is CVE-2023-30571?

Libarchive through version 3.6.2 is vulnerable to a race condition that can lead to directories being created with world-writable permissions, potentially allowing unauthorized access to sensitive data.

What is the CVSS score for CVE-2023-30571?

CVE-2023-30571 has CVSS 5.3 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H. EPSS: 0.2%.

Is CVE-2023-30571 actively exploited?

No confirmed active exploitation of CVE-2023-30571 as of 2026-09-25.

How do I remediate CVE-2023-30571?

Priority: MEDIUM.

What systems are affected by CVE-2023-30571?

CVE-2023-30571 affects Libarchive Libarchive.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Libarchive","product":"Libarchive","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.