CVE-2023-30571
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.
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
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 Low
CVSS: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 Low
CVSS: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 Low
CVSS: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 Low
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N - CVSS 3.1
- 5.3 Medium
CVSS: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 Low
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H - CVSS 3.1
- 3.9 Low
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
libarchiveDebian: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 less3.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 |
libarchiveDebian: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 less3.8.6-13.8.7-13.8.8-13.8.8-23.8.9-1 |
None known |
libarchiveDebian: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 less3.8.7-13.8.8-13.8.8-23.8.9-1 |
None known |
LibArchive_jllJulia |
before 3.7.4+0 | 3.7.4+0 |
libarchiveUbuntu: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 less3.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 |
libarchiveUbuntu: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 less3.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 |
libarchiveUbuntu: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 less3.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 |
libarchiveUbuntu: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 less3.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 |
libarchiveUbuntu: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 less3.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
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE 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
groups.google.com/g/libarchive-announce
github.com/libarchive/libarchive/issues/1876
nvd.nist.gov/vuln/detail/CVE-2023-30571
github.com/advisories/GHSA-cw7x-3mv7-w6xm
github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30571.json
security-tracker.debian.org/tracker/CVE-2023-30571
ubuntu.com/security/CVE-2023-30571
cve.org/CVERecord?id=CVE-2023-30571