Vulnerability 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.
CVSS Score
LOW
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Libarchive | Libarchive | <= 3.6.2 |
Related Weaknesses (CWE)
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
FAQ
What is CVE-2023-30571?
CVE-2023-30571 is a vulnerability with a CVSS score of 3.9 (LOW). 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 ...
How severe is CVE-2023-30571?
CVE-2023-30571 has been rated LOW with a CVSS base score of 3.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-30571?
Check the references section above for vendor advisories and patch information. Affected products include: Libarchive Libarchive.