{"id":"CVE-2023-30571","aliases":["DEBIAN-CVE-2023-30571","EUVD-2023-34952","GHSA-cw7x-3mv7-w6xm","JLSEC-2025-238","UBUNTU-CVE-2023-30571"],"status":"published","title":"Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask()...","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.","severity":{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AC:H/AV:L/A:N/C:L/I:L/PR:L/S:C/UI:R","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00194,"percentile":0.09167,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-362"],"published":"2023-05-29T00:00:00Z","modified":"2026-10-28T02:31:03Z","fixes":[{"ecosystem":"Julia","package":"LibArchive_jll","fixed_in":["3.7.4+0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.6.2-1","3.6.2-1+deb12u1","3.6.2-1+deb12u2","3.6.2-1+deb12u3","3.6.2-1+deb12u4","3.6.2-1+deb12u5","3.7.2-1","3.7.2-1.1","3.7.2-1.1~exp1","3.7.2-2","3.7.2-2.1","3.7.4-1","3.7.4-1.1","3.7.4-2","3.7.4-3","3.7.4-4","3.8.10-1","3.8.4-1","3.8.5-1","3.8.6-1","3.8.7-1","3.8.8-1","3.8.8-2","3.8.9-1"]},{"source":"osv","ecosystem":"Debian:13","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.7.4-4","3.7.4-4+deb13u1","3.8.10-1","3.8.4-1","3.8.5-1","3.8.6-1","3.8.7-1","3.8.8-1","3.8.8-2","3.8.9-1"]},{"source":"osv","ecosystem":"Debian:14","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.7.4-4","3.8.10-1","3.8.4-1","3.8.5-1","3.8.6-1","3.8.7-1","3.8.8-1","3.8.8-2","3.8.9-1"]},{"source":"osv","ecosystem":"Julia","package":"LibArchive_jll","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.7.4+0"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.2-5ubuntu1","3.1.2-7ubuntu1","3.1.2-7ubuntu2","3.1.2-7ubuntu2.1","3.1.2-7ubuntu2.2","3.1.2-7ubuntu2.3","3.1.2-7ubuntu2.4","3.1.2-7ubuntu2.6","3.1.2-7ubuntu2.7","3.1.2-7ubuntu2.8","3.1.2-7ubuntu2.8+esm1","3.1.2-7ubuntu2.8+esm3","3.1.2-7ubuntu2.8+esm4","3.1.2-7ubuntu2.8+esm5"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.2-11build1","3.1.2-11ubuntu0.16.04.1","3.1.2-11ubuntu0.16.04.2","3.1.2-11ubuntu0.16.04.3","3.1.2-11ubuntu0.16.04.4","3.1.2-11ubuntu0.16.04.5","3.1.2-11ubuntu0.16.04.6","3.1.2-11ubuntu0.16.04.7","3.1.2-11ubuntu0.16.04.8","3.1.2-11ubuntu0.16.04.8+esm1","3.1.2-11ubuntu0.16.04.8+esm2","3.1.2-11ubuntu0.16.04.8+esm3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.2-3.1","3.2.2-3.1ubuntu0.1","3.2.2-3.1ubuntu0.2","3.2.2-3.1ubuntu0.3","3.2.2-3.1ubuntu0.4","3.2.2-3.1ubuntu0.5","3.2.2-3.1ubuntu0.6","3.2.2-3.1ubuntu0.7","3.2.2-3.1ubuntu0.7+esm1","3.2.2-3.1ubuntu0.7+esm2","3.2.2-3.1ubuntu0.7+esm3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.0-1","3.4.0-1build1","3.4.0-1ubuntu2","3.4.0-2ubuntu1","3.4.0-2ubuntu1.1","3.4.0-2ubuntu1.2","3.4.0-2ubuntu1.3","3.4.0-2ubuntu1.4","3.4.0-2ubuntu1.5","3.4.0-2ubuntu1.5+esm1","3.4.0-2ubuntu1.5+esm2","3.4.0-2ubuntu1.5+esm3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libarchive","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.4.3-2","3.4.3-2build1","3.5.2-1","3.5.2-1ubuntu1","3.6.0-1ubuntu1","3.6.0-1ubuntu1.1","3.6.0-1ubuntu1.2","3.6.0-1ubuntu1.3","3.6.0-1ubuntu1.4","3.6.0-1ubuntu1.5","3.6.0-1ubuntu1.6","3.6.0-1ubuntu1.7","3.6.0-1ubuntu1.8","3.6.0-1ubuntu1.9"]}],"products":[{"vendor":"libarchive","product":"libarchive"}],"references":[{"url":"https://groups.google.com/g/libarchive-announce","tags":["x_transferred","Release Notes","web"]},{"url":"https://github.com/libarchive/libarchive/issues/1876","tags":["x_transferred","Issue Tracking","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30571","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-cw7x-3mv7-w6xm"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30571.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-30571","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-30571","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-30571","tags":["report"]}],"sources":{"cve":[{"id":"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.","status":"published","published":"2023-05-29T00:00:00Z","modified":"2025-01-14T17:07:29.493Z","cvss":[{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AC:H/AV:L/A:N/C:L/I:L/PR:L/S:C/UI:R","level":"low","assessor":"cna"}],"cwes":["CWE-362"],"updated_at":"2026-11-02T14:35:22.309324Z"}],"euvd":[{"id":"EUVD-2023-34952","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.","status":"published","published":"2023-05-29T00:00:00Z","modified":"2025-01-14T17:07:29Z","cvss":[{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AC:H/AV:L/A:N/C:L/I:L/PR:L/S:C/UI:R","level":"low"}],"updated_at":"2026-11-03T00:04:19.834715Z"}],"ghsa":[{"id":"GHSA-cw7x-3mv7-w6xm","title":"Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask()...","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.","status":"published","published":"2023-05-29T21:30:16Z","modified":"2024-04-11T21:21:42Z","cvss":[{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"low"}],"cwes":["CWE-362"],"updated_at":"2026-11-02T14:57:10.781816Z"}],"nvd":[{"id":"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.","status":"published","published":"2023-05-29T20:15:09.513Z","modified":"2026-06-17T05:55:03.22Z","cvss":[{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"low","assessor":"secondary"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H","level":"medium","assessor":"primary"}],"cwes":["CWE-362"],"updated_at":"2026-11-02T14:08:03.795015Z"}],"osv":[{"id":"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.","status":"published","published":"2023-05-29T00:00:00Z","modified":"2026-10-28T02:31:03.697966869Z","cvss":[{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AC:H/AV:L/A:N/C:L/I:L/PR:L/S:C/UI:R","level":"low"}],"updated_at":"2026-11-02T15:44:31.790231Z"},{"id":"DEBIAN-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.","status":"published","published":"2023-05-29T20:15:09.513Z","modified":"2026-10-26T18:01:41.149589044Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:39.679062Z"},{"id":"JLSEC-2025-238","title":"Libarchive through 3.6.2 can cause directories to have world-writable permissions","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.","status":"published","published":"2025-11-25T22:03:17.636Z","modified":"2026-07-23T22:30:22.743442199Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H","level":"medium"}],"updated_at":"2026-11-02T15:47:17.805107Z"},{"id":"UBUNTU-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.","status":"published","published":"2023-05-29T20:15:00Z","modified":"2026-10-08T19:46:18.810715496Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H","level":"medium"},{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"low"}],"updated_at":"2026-11-02T16:54:20.997471Z"}]}}
