Race Condition Affecting libarchive-devel package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.04% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL6-LIBARCHIVEDEVEL-5661328
  • published30 May 2023
  • disclosed29 May 2023

Introduced: 29 May 2023

CVE-2023-30571  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:6 libarchive-devel.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libarchive-devel package and not the libarchive-devel package as distributed by RHEL. See How to fix? for RHEL:6 relevant fixed versions and status.

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.

CVSS Scores

version 3.1