Skip to content
OpenAdvisories
Low · 3.9 CVE-2023-30571 EUVD-2023-34952GHSA-cw7x-3mv7-w6xm

Libarchive through 3.6.2 can cause directories to have world-writable permissions. The umask() call inside archive_write_disk_posix.c chang…

Published May 29, 2023 · Updated Jan 14, 2025 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libarchive No fix yet —
Debian 13 libarchive No fix yet —
Debian 12 libarchive No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS libarchive No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libarchive No fix yet —
Ubuntu Pro 18.04 LTS libarchive No fix yet —
Ubuntu Pro 16.04 LTS libarchive No fix yet —
Ubuntu Pro 14.04 LTS libarchive No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling libarchive 3.7.7-r2 —

Advisories 1

References