# CVE-2023-30571: Libarchive through 3.6.2 can cause directories to have world-writable permissions.

- Severity: Low 3.9 (CVSS:3.1, scored by mitre) `CVSS:3.1/AC:H/AV:L/A:N/C:L/I:L/PR:L/S:C/UI:R`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 6% of CVEs (2026-11-30)
- Published: 2023-05-29T00:00:00.000Z
- Modified: 2026-06-17T05:55:03.220Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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 CVE List.)

## Affected

- Unspecified product: n/a
- libarchive libarchive: up to 3.6.2

## Every score

- mitre: CVSS:3.1 3.9 Low `CVSS:3.1/AC:H/AV:L/A:N/C:L/I:L/PR:L/S:C/UI:R`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H`

## References

- <https://groups.google.com/g/libarchive-announce> (release-notes)
- <https://github.com/libarchive/libarchive/issues/1876> (issue-tracking)

## Sources

- CVE List: [CVE-2023-30571](https://www.cve.org/CVERecord?id=CVE-2023-30571), CVE Terms of Use, modified 2025-01-14
- NVD: [CVE-2023-30571](https://nvd.nist.gov/vuln/detail/CVE-2023-30571), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-30571 · Whole record: https://cve.day/CVE-2023-30571.json · Rebuilt by cve.day 2026-11-25T22:58:24.435Z
