Skip to content
Heist/ feed
Back to feed
HighFix available

libtar — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-33644

An attacker who submits a crafted tar file with size in header struct being 0 may be able to trigger an calling of malloc(0) for a variable gnu_longname, causing an out-of-bounds read.

Products
libtar
Affected versions
1.2.20-8, 1.2.20-8+deb12u1~deb11u1
Fixed versions
1.2.20-8+deb12u1
CVEs
CVE-2021-33644
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:49 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-33644

core-osv · Original source

Published 10 Aug 2022, 20:15 UTC

An attacker who submits a crafted tar file with size in header struct being 0 may be able to trigger an calling of malloc(0) for a variable gnu_longname, causing an out-of-bounds read.

osv:DEBIAN-CVE-2021-33644

libtar

Fixed versions: 1.2.20-8+deb12u1

Complete source record
{
  "id": "0d56563bdff2c51f7d6c376dc16f0af00296ff2f8763a5c9c4b52b7ab65c0930",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-33644",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2021-33644",
    "summary": "An attacker who submits a crafted tar file with size in header struct being 0 may be able to trigger an calling of malloc(0) for a variable gnu_longname, causing an out-of-bounds read.",
    "evidence": "osv:DEBIAN-CVE-2021-33644",
    "products": [
      {
        "name": {
          "value": "libtar",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.2.20-8+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.2.20-8",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.20-8+deb12u1~deb11u1",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2021-33644",
      "aliases": [
        "DEBIAN-CVE-2021-33644"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.2.20-8+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "libtar",
            "purl": "pkg:deb/debian/libtar?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "1.2.20-8",
            "1.2.20-8+deb12u1~deb11u1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-33644.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:49.388140164Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-33644"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-33644"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-33644",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 422367,
  "published_at": "2022-08-10T20:15:20.517+00:00"
}