Advisory Database
  • Advisories
  • Dependency Scanning
  1. conan
  2. ›
  3. libarchive
  4. ›
  5. CVE-2023-30571

CVE-2023-30571: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

May 29, 2023 (updated June 5, 2023)

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.

References

  • github.com/libarchive/libarchive/issues/1876
  • groups.google.com/g/libarchive-announce
  • nvd.nist.gov/vuln/detail/CVE-2023-30571

Code Behaviors & Features

Detect and mitigate CVE-2023-30571 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 3.6.2

Solution

Unfortunately, there is no solution available yet.

Impact 5.3 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

conan/libarchive/CVE-2023-30571.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:39 +0000.