CVE-2023-30571
Last modified
CVE-2023-30571 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 0.19% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Libarchive | Libarchive | <= 3.6.2 |
References
- https://github.com/libarchive/libarchive/issues/1876Issue Tracking
- https://groups.google.com/g/libarchive-announceRelease Notes
- https://github.com/libarchive/libarchive/issues/1876Issue Tracking
- https://groups.google.com/g/libarchive-announceRelease Notes
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-30571?
How severe is CVE-2023-30571?
How do I fix CVE-2023-30571?
Are you affected by CVE-2023-30571?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
