# JLSEC-2025-238: Libarchive through 3.6.2 can cause directories to have world-writable permissions

- Severity: Medium 5.3 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-11-25T22:03:17.636Z
- Modified: 2026-07-23T22:30:22.743Z
- Related: 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.

(As written by Julia Security Advisories.)

## Affected

- LibArchive_jll (Julia): before 3.7.4+0

## References

- <https://github.com/libarchive/libarchive/issues/1876> (web)
- <https://groups.google.com/g/libarchive-announce> (web)

## Sources

- Julia Security Advisories: [JLSEC-2025-238](https://osv.dev/vulnerability/JLSEC-2025-238), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/JLSEC-2025-238 · Whole record: https://cve.day/JLSEC-2025-238.json · Rebuilt by cve.day 2026-11-25T22:56:25.779Z
