Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask() call inside archivewritedisk_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.
{
"sources": [
{
"modified": "2025-01-14T17:15:11.673Z",
"imported": "2025-11-25T21:58:26.864Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2023-30571",
"published": "2023-05-29T20:15:09.513Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-30571",
"id": "CVE-2023-30571"
}
],
"license": "CC-BY-4.0"
}