{"id":"JLSEC-2025-238","aliases":["JLSEC-2025-238"],"related":["CVE-2023-30571"],"kind":"vulnerability","state":"published","title":"Libarchive through 3.6.2 can cause directories to have world-writable permissions","summary":"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.","summaryFormat":"markdown","summarySource":"jlsec","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"jlsec"}],"published":"2025-11-25T22:03:17.636Z","modified":"2026-07-23T22:30:22.743Z","severity":{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"Julia Security Advisories","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H","score":5.3,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.7.4+0"}],"ecosystem":"Julia","package":"LibArchive_jll","purl":"pkg:julia/LibArchive_jll?uuid=1e303b3e-d4db-56ce-88c4-91e52606a1a8","source":"jlsec"}],"references":[{"url":"https://github.com/libarchive/libarchive/issues/1876","tags":["web"],"sources":["jlsec"]},{"url":"https://groups.google.com/g/libarchive-announce","tags":["web"],"sources":["jlsec"]}],"credits":[],"sources":[{"source":"jlsec","name":"Julia Security Advisories","id":"JLSEC-2025-238","url":"https://osv.dev/vulnerability/JLSEC-2025-238","licence":"CC-BY-4.0","modified":"2026-07-23T22:30:22.743Z"}],"updatedAt":"2026-11-25T22:56:25.779Z"}