Skip to main content
CVE-2023-30571VulnerabilityPublished Updated

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

Affects libarchiveSource GCVE Database

0

Not known to be exploited · CVSS 5.3 High.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
5.3High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 8% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 May 2023

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
Ubuntu:Pro:14.04:LTSlibarchivepkg:deb/ubuntu/libarchive@3.1.2-7ubuntu2.8+esm5?arch=source&distro=esm-infra-legacy/trustyOther threatsAffected
  • =3.1.2-5ubuntu1
  • =3.1.2-7ubuntu1
  • =3.1.2-7ubuntu2
  • =3.1.2-7ubuntu2.1
  • =3.1.2-7ubuntu2.2
  • =3.1.2-7ubuntu2.3
  • =3.1.2-7ubuntu2.4
  • =3.1.2-7ubuntu2.6
  • =3.1.2-7ubuntu2.7
  • =3.1.2-7ubuntu2.8
  • =3.1.2-7ubuntu2.8+esm1
  • =3.1.2-7ubuntu2.8+esm3
  • =3.1.2-7ubuntu2.8+esm4
  • =3.1.2-7ubuntu2.8+esm5
Fixed in–
Ubuntu:Pro:16.04:LTSlibarchivepkg:deb/ubuntu/libarchive@3.1.2-11ubuntu0.16.04.8+esm3?arch=source&distro=esm-infra-legacy/xenialOther threatsAffected
  • =3.1.2-11build1
  • =3.1.2-11ubuntu0.16.04.1
  • =3.1.2-11ubuntu0.16.04.2
  • =3.1.2-11ubuntu0.16.04.3
  • =3.1.2-11ubuntu0.16.04.4
  • =3.1.2-11ubuntu0.16.04.5
  • =3.1.2-11ubuntu0.16.04.6
  • =3.1.2-11ubuntu0.16.04.7
  • =3.1.2-11ubuntu0.16.04.8
  • =3.1.2-11ubuntu0.16.04.8+esm1
  • =3.1.2-11ubuntu0.16.04.8+esm2
  • =3.1.2-11ubuntu0.16.04.8+esm3
Fixed in–
Ubuntu:Pro:18.04:LTSlibarchivepkg:deb/ubuntu/libarchive@3.2.2-3.1ubuntu0.7+esm3?arch=source&distro=esm-infra/bionicOther threatsAffected
  • =3.2.2-3.1
  • =3.2.2-3.1ubuntu0.1
  • =3.2.2-3.1ubuntu0.2
  • =3.2.2-3.1ubuntu0.3
  • =3.2.2-3.1ubuntu0.4
  • =3.2.2-3.1ubuntu0.5
  • =3.2.2-3.1ubuntu0.6
  • =3.2.2-3.1ubuntu0.7
  • =3.2.2-3.1ubuntu0.7+esm1
  • =3.2.2-3.1ubuntu0.7+esm2
  • =3.2.2-3.1ubuntu0.7+esm3
Fixed in–
Ubuntu:Pro:20.04:LTSlibarchivepkg:deb/ubuntu/libarchive@3.4.0-2ubuntu1.5+esm3?arch=source&distro=esm-infra/focalOther threatsAffected
  • =3.4.0-1
  • =3.4.0-1build1
  • =3.4.0-1ubuntu2
  • =3.4.0-2ubuntu1
  • =3.4.0-2ubuntu1.1
  • =3.4.0-2ubuntu1.2
  • =3.4.0-2ubuntu1.3
  • =3.4.0-2ubuntu1.4
  • =3.4.0-2ubuntu1.5
  • =3.4.0-2ubuntu1.5+esm1
  • =3.4.0-2ubuntu1.5+esm2
  • =3.4.0-2ubuntu1.5+esm3
Fixed in–
Ubuntu:22.04:LTSlibarchivepkg:deb/ubuntu/libarchive@3.6.0-1ubuntu1.8?arch=source&distro=jammyOther threatsAffected
  • =3.4.3-2
  • =3.4.3-2build1
  • =3.5.2-1
  • =3.5.2-1ubuntu1
  • =3.6.0-1ubuntu1
  • =3.6.0-1ubuntu1.1
  • =3.6.0-1ubuntu1.2
  • =3.6.0-1ubuntu1.3
  • =3.6.0-1ubuntu1.4
  • =3.6.0-1ubuntu1.5
  • =3.6.0-1ubuntu1.6
  • =3.6.0-1ubuntu1.7
  • =3.6.0-1ubuntu1.8
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Until a patch is confirmed, avoid running libarchive in multi-threaded environments where this race condition could be exploited, or restrict local user access to systems using vulnerable versions. Monitor vendor channels for official fixes.

Description

Libarchive versions through 3.6.2 contain a race condition in the umask() call that can cause directories to be created with world-writable permissions (0777) without the sticky bit. This occurs because the umask change affects the entire process briefly, and concurrent threads can cause the umask to remain at 0 permanently. As a result, low-privileged local users may gain the ability to delete or rename files within these directories.

References

Community reviews

Loading reviews…