Race condition in libarchive - CVE-2023-30571

 

Race condition in libarchive - CVE-2023-30571

Published: September 9, 2024


Vulnerability identifier: #VU96964
CSH Severity: Low
CVSS v4: 2 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-30571
CWE-ID: CWE-362
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to perform a denial of service (DoS) attack.

The vulnerability exists due to a race condition due to the umask() call inside archive_write_disk_posix.c changes the umask of the whole process for a very short period of time. 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.


Affected software

libarchive
Traffix SDC
Anolis OS
bsdcat
bsdcpio
bsdtar
bsdunzip
libarchive
libarchive-devel
libarchive-doc

How to mitigate CVE-2023-30571

Install updates from vendor's website.

libarchive - update to 3.7.2
bsdcat - update to 3.7.1-1
bsdcpio - update to 3.7.1-1
bsdtar - update to 3.7.1-1
bsdunzip - update to 3.7.1-1
libarchive - update to 3.7.1-1
libarchive-devel - update to 3.7.1-1
libarchive-doc - update to 3.7.1-1

External References

Related Security Bulletins