CVE-2023-30571
JSON

3.9low

Libarchive through 3.6.2 can cause directories to have world-writable permissions.

Severity
3.9low CVSS:3.1 by mitre
Exploit likelihood
0.20% (higher than 6% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
libarchive libarchiveup to 3.6.2NVD

All scores

mitre3.9low CVSS:3.1CVSS:3.1/AC:H/AV:L/A:N/C:L/I:L/PR:L/S:C/UI:R
NVD5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H

Classification

CWE-362

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Libarchive hasta la versión 3.6.2 puede hacer que los directorios tengan permisos de escritura global. La llamada "umask()" dentro del archivo "archive_write_disk_posix.c" cambia la máscara de usuario de todo el proceso durante un periodo de tiempo muy corto; una condición de carrera con otro hilo puede llevar a un ajuste permanente de la máscara de usuario a 0. Tal condición de carrera podría llevar a la creación implícita de directorios con permisos 0777, sin el bit adhesivo ("sticky bit"), lo que significa que cualquier usuario local con pocos privilegios puede borrar y renombrar archivos dentro de esos directorios.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-30571 changed 2025-01-14CVE Terms of Use
NVDCVE-2023-30571 changed 2026-06-17Public domain