Skip to main content
EPSS 0.2%top 91%

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

0
High
Published: 05/29/2023 (05/29/2023, 20:15:00 UTC)
Source: GCVE Database
Product: libarchive

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.

CVSS v3.1

Score 5.3medium

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H

Affected software

Ubuntu:Pro:14.04:LTSmore threats →ghsa
libarchive
pkg:deb/ubuntu/[email protected]+esm5?arch=source&distro=esm-infra-legacy/trusty
Affected versions
=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
Ubuntu:Pro:16.04:LTSmore threats →ghsa
libarchive
pkg:deb/ubuntu/[email protected]+esm3?arch=source&distro=esm-infra-legacy/xenial
Affected versions
=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
Ubuntu:Pro:18.04:LTSmore threats →ghsa
libarchive
pkg:deb/ubuntu/[email protected]+esm3?arch=source&distro=esm-infra/bionic
Affected versions
=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
Ubuntu:Pro:20.04:LTSmore threats →ghsa
libarchive
pkg:deb/ubuntu/[email protected]+esm3?arch=source&distro=esm-infra/focal
Affected versions
=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
Ubuntu:22.04:LTSmore threats →ghsa
libarchive
pkg:deb/ubuntu/[email protected]?arch=source&distro=jammy
Affected versions
=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

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 00:48:49 UTC

Technical Analysis

Libarchive versions up to and including 3.6.2 have a vulnerability where a race condition in the umask() call inside archive_write_disk_posix.c can cause the process umask to be permanently set to 0. This leads to implicit directory creation with overly permissive 0777 permissions lacking the sticky bit. Consequently, any low-privileged local user can delete or rename files inside these directories due to the world-writable permissions.

Potential Impact

The vulnerability allows local low-privileged users to manipulate files in directories created by libarchive with world-writable permissions. This can lead to unauthorized file deletion or renaming, potentially impacting system integrity and availability. There is no indication of confidentiality or direct code execution impact.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. 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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2023-30571
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:14.04:LTS","Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:22.04:LTS"]
Cvss Version
3.1

Threat ID: 6a600ab59c2644c7f8fe2131

Added to database: 07/22/2026, 00:11:33 UTC

Last enriched: 07/22/2026, 00:48:49 UTC

Last updated: 09/10/2026, 19:36:47 UTC

Views: 26

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses