Skip to content
Heist/ feed
Back to feed
Medium

libarchive — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-30571

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.

Products
libarchive
Affected versions
3.6.2-1, 3.6.2-1+deb12u1, 3.6.2-1+deb12u2, 3.6.2-1+deb12u3, 3.6.2-1+deb12u4, 3.6.2-1+deb12u5, 3.7.2-1, 3.7.2-1.1, 3.7.2-1.1~exp1, 3.7.2-2, 3.7.2-2.1, 3.7.4-1, 3.7.4-1.1, 3.7.4-2, 3.7.4-3, 3.7.4-4, 3.7.4-4+deb13u1, 3.8.10-1, 3.8.4-1, 3.8.5-1, 3.8.6-1, 3.8.7-1, 3.8.8-1, 3.8.8-2, 3.8.9-1
Fixed versions
Not specified
CVEs
CVE-2023-30571
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 15:46 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-30571

core-osv · Original source

Published 29 May 2023, 20:15 UTC

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.

osv:DEBIAN-CVE-2023-30571

libarchive

Fixed versions: Not specified

libarchive

Fixed versions: Not specified

libarchive

Fixed versions: Not specified

Complete source record
{
  "id": "0a5cdd0f5d9cb6704f5cd045b7f21870624e6f9037139bdb474edc2f9638b1f5",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-30571",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-30571",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2023-30571",
    "products": [
      {
        "name": {
          "value": "libarchive",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.6.2-1+deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.6.2-1+deb12u2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.6.2-1+deb12u3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.6.2-1+deb12u4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.6.2-1+deb12u5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.7.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.7.2-1.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.7.2-1.1~exp1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.7.2-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.7.2-2.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.7.4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.7.4-1.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.7.4-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.7.4-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.7.4-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.8.10-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.8.4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.8.5-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.8.6-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.8.7-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.8.8-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.8.8-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "3.8.9-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libarchive",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.7.4-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.7.4-4+deb13u1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.8.10-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.8.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.8.5-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.8.6-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.8.7-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.8.8-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.8.8-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.8.9-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libarchive",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.7.4-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.8.10-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.8.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.8.5-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.8.6-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.8.7-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.8.8-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.8.8-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.8.9-1",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2023-30571",
      "aliases": [
        "DEBIAN-CVE-2023-30571"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libarchive",
            "purl": "pkg:deb/debian/libarchive?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "3.6.2-1",
            "3.6.2-1+deb12u1",
            "3.6.2-1+deb12u2",
            "3.6.2-1+deb12u3",
            "3.6.2-1+deb12u4",
            "3.6.2-1+deb12u5",
            "3.7.2-1",
            "3.7.2-1.1",
            "3.7.2-1.1~exp1",
            "3.7.2-2",
            "3.7.2-2.1",
            "3.7.4-1",
            "3.7.4-1.1",
            "3.7.4-2",
            "3.7.4-3",
            "3.7.4-4",
            "3.8.10-1",
            "3.8.4-1",
            "3.8.5-1",
            "3.8.6-1",
            "3.8.7-1",
            "3.8.8-1",
            "3.8.8-2",
            "3.8.9-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-30571.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libarchive",
            "purl": "pkg:deb/debian/libarchive?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "3.7.4-4",
            "3.7.4-4+deb13u1",
            "3.8.10-1",
            "3.8.4-1",
            "3.8.5-1",
            "3.8.6-1",
            "3.8.7-1",
            "3.8.8-1",
            "3.8.8-2",
            "3.8.9-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-30571.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libarchive",
            "purl": "pkg:deb/debian/libarchive?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "3.7.4-4",
            "3.8.10-1",
            "3.8.4-1",
            "3.8.5-1",
            "3.8.6-1",
            "3.8.7-1",
            "3.8.8-1",
            "3.8.8-2",
            "3.8.9-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-30571.json"
          },
          "ecosystem_specific": {
            "urgency": "unimportant"
          }
        }
      ],
      "modified": "2026-10-26T18:01:41.149589044Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-30571"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-30571"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-30571",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 455635,
  "published_at": "2023-05-29T20:15:09.513+00:00"
}