CVE-2023-30571

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.

Published: 2023-05-29 Last update: 2025-01-14 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2023-30571 is rated Low Risk (17.6/100): CVSS Low severity, with low exploitation likelihood (EPSS 0.04%). Mandatory action: Low composite risk—no urgent action required; patch on your normal maintenance cycle and revisit priority if CVSS or EPSS increases.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2023-30571

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2023-05-30 0.04%

Full EPSS history (1 record total)

Common vulnerability scoring system (CVSS) metrics for CVE-2023-30571

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
3.9 3.1 LOW
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
0.8 2.7 [email protected]
5.3 3.1 MEDIUM
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.0 4.2 [email protected]

Weakness enumeration for CVE-2023-30571

OS Trackers for CVE-2023-30571

vendor priority summary link
alpine CVE-2023-30571: 1 source package rows (libarchive); 32 state rows across 6 repos (3.17-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 0, open 32. https://security.alpinelinux.org/vuln/CVE-2023-30571
debian unimportant CVE-2023-30571 unimportant priority: Debian including 1 source packages (libarchive), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 5. https://security-tracker.debian.org/tracker/CVE-2023-30571
redhat medium https://access.redhat.com/security/cve/CVE-2023-30571
suse low CVE-2023-30571 severity low: SUSE including 5 source package names (bsdtar, libarchive, libarchive-devel, libarchive13, libarchive13-32bit), 97 product×package rows across 33 product lines (SLES-LTSS-TERADATA 15 SP2, SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS, … (33 product lines)): Will Not Fix 97. https://www.suse.com/security/cve/CVE-2023-30571/
ubuntu negligible CVE-2023-30571 negligible priority: Ubuntu including 1 source packages (libarchive), 8 status rows across 8 suites (bionic, focal, jammy, kinetic, lunar, trusty, upstream, xenial): ignored 7, needs-triage 1. https://ubuntu.com/security/CVE-2023-30571

Affected software / configurations for CVE-2023-30571

Vendor Product Version Raw CPE
libarchive libarchive <= 3.6.2 cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*

References for CVE-2023-30571

cvelogic Threat Intelligence