Low severity3.9NVD Advisory· Published May 29, 2023· Updated Jun 17, 2026
CVE-2023-30571
CVE-2023-30571
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
11cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*range: <=3.6.2
- (no CPE)
- (no CPE)range: <=3.6.2
- osv-coords8 versionspkg:apk/chainguard/libarchivepkg:apk/chainguard/libarchive-devpkg:apk/chainguard/libarchive-docpkg:apk/chainguard/libarchive-toolspkg:apk/wolfi/libarchivepkg:apk/wolfi/libarchive-devpkg:apk/wolfi/libarchive-docpkg:apk/wolfi/libarchive-tools
< 3.7.7-r2+ 7 more
- (no CPE)range: < 3.7.7-r2
- (no CPE)range: < 3.7.7-r2
- (no CPE)range: < 3.7.7-r2
- (no CPE)range: < 3.7.7-r2
- (no CPE)range: < 3.7.7-r2
- (no CPE)range: < 3.7.7-r2
- (no CPE)range: < 3.7.7-r2
- (no CPE)range: < 3.7.7-r2
Patches
Vulnerability mechanics
References
2- github.com/libarchive/libarchive/issues/1876nvdIssue Tracking
- groups.google.com/g/libarchive-announcenvdRelease Notes
News mentions
0No linked articles in our index yet.