CVE-2023-30571: Libarchive - Race Condition
- Cve: CVE-2023-30571
- Name: Libarchive - Race Condition
- 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.
- Impact: Low-privileged local users can delete or rename files within directories with 0777 permissions, leading to potential data tampering or privilege escalation.
- Remediation: Update to version 3.6.3 or later to fix the race condition.
- Vulnerability type: race_condition
- Vulnerability impact: data_tampering, privilege_escalation
- Requirements: Exploit requires race condition with concurrent thread.
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.3
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
- Epss score: 0.00194
- Epss percentile: 0.09042
- Assignee: [email protected]
- Published at: 2023-05-29T20:15:09Z
- Age in days: 1275
- Modified at: 2026-06-17T05:55:03Z
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-30571
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/libarchive/libarchive/issues/1876 | nvd | Issue Tracking |
| https://groups.google.com/g/libarchive-announce | nvd | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| libarchive:libarchive | <= 3.6.2 | no | nvd | /v1/products/libarchive/libarchive |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| libarchive/libarchive | issues | yes | /v1/repositories/libarchive/libarchive |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts