Race Condition Affecting bsdcpio package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.19% (10th 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 IDSNYK-RHEL7-BSDCPIO-5661276
  • 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:7 bsdcpio.

NVD Description

Note: Versions mentioned in the description apply only to the upstream bsdcpio package and not the bsdcpio package as distributed by RHEL. See How to fix? for RHEL:7 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 Base Scores

version 3.1