{"id":"JLSEC-2025-238","summary":"Libarchive through 3.6.2 can cause directories to have world-writable permissions","details":"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.","modified":"2026-07-23T22:30:22.743442199Z","published":"2025-11-25T22:03:17.636Z","upstream":["CVE-2023-30571"],"database_specific":{"license":"CC-BY-4.0","sources":[{"database_specific":{"status":"Modified"},"id":"CVE-2023-30571","imported":"2026-07-17T20:48:28.979Z","modified":"2026-06-17T05:55:03.220Z","published":"2023-05-29T20:15:09.513Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2023-30571","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30571"}]},"references":[{"type":"WEB","url":"https://github.com/libarchive/libarchive/issues/1876"},{"type":"WEB","url":"https://groups.google.com/g/libarchive-announce"}],"affected":[{"package":{"name":"LibArchive_jll","ecosystem":"Julia","purl":"pkg:julia/LibArchive_jll?uuid=1e303b3e-d4db-56ce-88c4-91e52606a1a8"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.7.4+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2025/JLSEC-2025-238.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H"}]}