SecurityContext

CVE-2023-30571: Libarchive - Race Condition

  • Cve: CVE-2023-30571
  • Name: Libarchive - Race Condition
  • 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.
  • Impact: Low-privileged local users can delete or rename files within directories with 0777 permissions, leading to potential data tampering or privilege escalation.
  • Remediation: Update to version 3.6.3 or later to fix the race condition.
  • Vulnerability type: race_condition
  • Vulnerability impact: data_tampering, privilege_escalation
  • Requirements: Exploit requires race condition with concurrent thread.
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
  • Epss score: 0.00194
  • Epss percentile: 0.09042
  • Assignee: [email protected]
  • Published at: 2023-05-29T20:15:09Z
  • Age in days: 1275
  • Modified at: 2026-06-17T05:55:03Z
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-30571
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-362Concurrent Execution using Shared Resource with Improper Synchronization

References

UrlSourceTags
https://github.com/libarchive/libarchive/issues/1876nvdIssue Tracking
https://groups.google.com/g/libarchive-announcenvdRelease Notes

Products

ProductAffectedPlatform boundSourcesUrl
libarchive:libarchive<= 3.6.2nonvd/v1/products/libarchive/libarchive

Projects

RepositoryLink kindsIndexedUrl
libarchive/libarchiveissuesyes/v1/repositories/libarchive/libarchive

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts