
CVE catalog
CVE-2023-30571
libarchive affected and fixed versions
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.
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.19% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
Version impact has not been established. The original provider fields are retained below.
Provider details and historical evidence
Original provider fields
{
"package_releases": [
{
"name": "libarchive",
"status": "vulnerable",
"release": "sid",
"version": "3.8.10-2"
},
{
"name": "libarchive",
"status": "vulnerable",
"release": "forky",
"version": "3.8.9-1"
},
{
"name": "libarchive",
"status": "vulnerable",
"release": "trixie",
"version": "3.7.4-4+deb13u1"
},
{
"name": "libarchive",
"status": "vulnerable",
"release": "bookworm",
"version": "3.6.2-1+deb12u4"
},
{
"name": "libarchive",
"status": "vulnerable",
"release": "bookworm-security",
"version": "3.6.2-1+deb12u5"
}
],
"fixed_versions": [
{
"bug": 1037093,
"name": "libarchive",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "unimportant",
"fixed_version": ""
},
{
"bug": 1037093,
"name": "libarchive",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "unimportant",
"fixed_version": ""
},
{
"bug": 1037093,
"name": "libarchive",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "unimportant",
"fixed_version": ""
},
{
"bug": 1037093,
"name": "libarchive",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "unimportant",
"fixed_version": ""
}
],
"distribution_packages": [
{
"name": "libarchive",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "pro",
"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"
],
"ecosystem": "deb",
"fixed_version": "",
"provider_record_id": "UBUNTU-CVE-2023-30571"
},
{
"name": "libarchive",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "22.04",
"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",
"3.6.0-1ubuntu1.9"
],
"ecosystem": "deb",
"fixed_version": "",
"provider_record_id": "UBUNTU-CVE-2023-30571"
}
]
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libarchive13]Unknown
Source package: [libarchive]
Details (4)
3.6.2-1+deb12u4· amd64 · bookwormAffected
dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u4· arm64 · bookwormAffected
dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u5· amd64 · bookworm-securityAffected
dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u5· arm64 · bookworm-securityAffected
dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
- [libarchive-dev]Unknown
Source package: [libarchive]
Details (4)
3.6.2-1+deb12u4· amd64 · bookwormAffected
dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u4· arm64 · bookwormAffected
dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u5· amd64 · bookworm-securityAffected
dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u5· arm64 · bookworm-securityAffected
dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
- [libarchive-tools]Unknown
Source package: [libarchive]
Details (4)
3.6.2-1+deb12u4· amd64 · bookwormAffected
dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u4· arm64 · bookwormAffected
dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u5· amd64 · bookworm-securityAffected
dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
3.6.2-1+deb12u5· arm64 · bookworm-securityAffected
dsa · libarchive · debian · bookworm; dsa · libarchive · debian · 12
[Debian 13 (Trixie)]
- [libarchive13t64]Unknown
Source package: [libarchive]
Details (2)
3.7.4-4+deb13u1· amd64 · trixieAffected
dsa · libarchive · debian · 13
3.7.4-4+deb13u1· arm64 · trixieAffected
dsa · libarchive · debian · 13
- [libarchive-dev]Unknown
Source package: [libarchive]
Details (2)
3.7.4-4+deb13u1· amd64 · trixieAffected
dsa · libarchive · debian · 13
3.7.4-4+deb13u1· arm64 · trixieAffected
dsa · libarchive · debian · 13
- [libarchive-tools]Unknown
Source package: [libarchive]
Details (2)
3.7.4-4+deb13u1· amd64 · trixieAffected
dsa · libarchive · debian · 13
3.7.4-4+deb13u1· arm64 · trixieAffected
dsa · libarchive · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-30571]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-30571]
- [https://security-tracker.debian.org/tracker/CVE-2023-30571]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-30571.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1314.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]