Every CVE Search/ Get API key

CVE-2023-30571

Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask()...

3.9 LowFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
High
Privileges needed
Low
User interaction
Required

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
None

Exploit likelihood

0.19%Up 0.2 points since May 30, 2023
90%50%10%1%

What each source reports

CVE List Score used 3.9

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.

Record
CVE-2023-30571
CVSS 3.1
3.9 LowCVSS:3.1/AC:H/AV:L/A:N/C:L/I:L/PR:L/S:C/UI:R
Weakness
CWE-362
Updated
2026-11-02
EUVDEUVD-2023-34952 3.9

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.

Record
EUVD-2023-34952
CVSS 3.1
3.9 LowCVSS:3.1/AC:H/AV:L/A:N/C:L/I:L/PR:L/S:C/UI:R
Updated
2026-11-03
GitHub AdvisoriesGHSA-cw7x-3mv7-w6xm 3.9

Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask()...

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.

Record
GHSA-cw7x-3mv7-w6xm
CVSS 3.1
3.9 LowCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-362
Updated
2026-11-02
NVD 3.9

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.

Record
CVE-2023-30571
CVSS 3.1
3.9 LowCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
CVSS 3.1
5.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Weakness
CWE-362
Updated
2026-11-02
OSV 3.9

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.

Record
CVE-2023-30571
CVSS 3.1
3.9 LowCVSS:3.1/AC:H/AV:L/A:N/C:L/I:L/PR:L/S:C/UI:R
Updated
2026-11-02
OSVDEBIAN-CVE-2023-30571 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 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.

Record
DEBIAN-CVE-2023-30571
CVSS 3.1
5.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Updated
2026-11-02
OSVJLSEC-2025-238 5.3

Libarchive through 3.6.2 can cause directories to have world-writable permissions

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.

Record
JLSEC-2025-238
CVSS 3.1
5.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2023-30571 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 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.

Record
UBUNTU-CVE-2023-30571
CVSS 3.1
5.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
CVSS 3.1
3.9 LowCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libarchive
Debian:12
All versions, plus listed versions
3.6.2-13.6.2-1+deb12u13.6.2-1+deb12u23.6.2-1+deb12u33.6.2-1+deb12u4
Show 19 moreShow less
3.6.2-1+deb12u53.7.2-13.7.2-1.13.7.2-1.1~exp13.7.2-23.7.2-2.13.7.4-13.7.4-1.13.7.4-23.7.4-33.7.4-43.8.10-13.8.4-13.8.5-13.8.6-13.8.7-13.8.8-13.8.8-23.8.9-1
None known
libarchive
Debian:13
All versions, plus listed versions
3.7.4-43.7.4-4+deb13u13.8.10-13.8.4-13.8.5-1
Show 5 moreShow less
3.8.6-13.8.7-13.8.8-13.8.8-23.8.9-1
None known
libarchive
Debian:14
All versions, plus listed versions
3.7.4-43.8.10-13.8.4-13.8.5-13.8.6-1
Show 4 moreShow less
3.8.7-13.8.8-13.8.8-23.8.9-1
None known
LibArchive_jll
Julia
before 3.7.4+0
3.7.4+0
libarchive
Ubuntu:Pro:14.04:LTS
All versions, plus listed versions
3.1.2-5ubuntu13.1.2-7ubuntu13.1.2-7ubuntu23.1.2-7ubuntu2.13.1.2-7ubuntu2.2
Show 9 moreShow less
3.1.2-7ubuntu2.33.1.2-7ubuntu2.43.1.2-7ubuntu2.63.1.2-7ubuntu2.73.1.2-7ubuntu2.83.1.2-7ubuntu2.8+esm13.1.2-7ubuntu2.8+esm33.1.2-7ubuntu2.8+esm43.1.2-7ubuntu2.8+esm5
None known
libarchive
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
3.1.2-11build13.1.2-11ubuntu0.16.04.13.1.2-11ubuntu0.16.04.23.1.2-11ubuntu0.16.04.33.1.2-11ubuntu0.16.04.4
Show 7 moreShow less
3.1.2-11ubuntu0.16.04.53.1.2-11ubuntu0.16.04.63.1.2-11ubuntu0.16.04.73.1.2-11ubuntu0.16.04.83.1.2-11ubuntu0.16.04.8+esm13.1.2-11ubuntu0.16.04.8+esm23.1.2-11ubuntu0.16.04.8+esm3
None known
libarchive
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
3.2.2-3.13.2.2-3.1ubuntu0.13.2.2-3.1ubuntu0.23.2.2-3.1ubuntu0.33.2.2-3.1ubuntu0.4
Show 6 moreShow less
3.2.2-3.1ubuntu0.53.2.2-3.1ubuntu0.63.2.2-3.1ubuntu0.73.2.2-3.1ubuntu0.7+esm13.2.2-3.1ubuntu0.7+esm23.2.2-3.1ubuntu0.7+esm3
None known
libarchive
Ubuntu:Pro:20.04:LTS
All versions, plus listed versions
3.4.0-13.4.0-1build13.4.0-1ubuntu23.4.0-2ubuntu13.4.0-2ubuntu1.1
Show 7 moreShow less
3.4.0-2ubuntu1.23.4.0-2ubuntu1.33.4.0-2ubuntu1.43.4.0-2ubuntu1.53.4.0-2ubuntu1.5+esm13.4.0-2ubuntu1.5+esm23.4.0-2ubuntu1.5+esm3
None known
libarchive
Ubuntu:22.04:LTS
All versions, plus listed versions
3.4.3-23.4.3-2build13.5.2-13.5.2-1ubuntu13.6.0-1ubuntu1
Show 9 moreShow less
3.6.0-1ubuntu1.13.6.0-1ubuntu1.23.6.0-1ubuntu1.33.6.0-1ubuntu1.43.6.0-1ubuntu1.53.6.0-1ubuntu1.63.6.0-1ubuntu1.73.6.0-1ubuntu1.83.6.0-1ubuntu1.9
None known

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2023-30571 is a low vulnerability (CVSS 3.9) in Libarchive, published May 29, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.19%, the 9th percentile. Fixed in LibArchive_jll 3.7.4+0.

References

MoveEnter Open