CVE-2021-33644: Out-of-bounds read in libtar GNU long-name processing
- Vendors
- Fedora ProjectFeepOpenatom
CVE-2021-33644 is an out-of-bounds read vulnerability in libtar triggered by a crafted tar archive containing a GNU long-name record with a zero-size header. Processing the record can cause malloc(0) to be called for the gnu_longname buffer, followed by an out-of-bounds read. A subsequent investigation identified an incomplete-fix issue affecting both GNU long-name and long-link records: rejecting zero-size records does not ensure NUL termination of nonzero buffers. Records with a positive size divisible by 512 and no NUL bytes can cause safer_name_suffix() to read beyond the allocation. This follow-up issue was confirmed in Debian package version 1.2.20-8+deb12u1 and had a separate CVE identifier pending as of November 4, 2026.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Processing a malicious archive can compromise application availability and confidentiality through out-of-bounds memory reads. For the incomplete-fix issue, a heap-buffer-overflow read was demonstrated, with potential application crashes and disclosure of adjacent heap data through returned path strings. No out-of-bounds write was identified in that investigation. The supplied CVSS assessment for CVE-2021-33644 rates confidentiality and availability impact as high and integrity impact as none.
Mitigation
If you can’t patch tonight, do this now.
Avoid processing untrusted tar archives with affected libtar applications until the relevant fixes are verified. If archive processing is unavoidable, isolate the application with minimal privileges, restrict its access to sensitive data, and apply resource limits to reduce the consequences of memory disclosure or crashes.
Remediation
Patch, then assume compromise.
Apply the vendor update addressing CVE-2021-33644 and verify that zero-size GNU long-name and long-link records are rejected. To address the separately reported incomplete-fix issue, also apply a correction that allocates an additional byte for both buffers and explicitly appends a NUL terminator after reading archive data. A proposed patch is available, but no released version incorporating the complete correction is established. Debian package version 1.2.20-8+deb12u1 was confirmed to retain the follow-up vulnerability.
Exploits
2 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-33644 exploited in the wild?
- As of Nov 4, 2026, Mallory has no reports of CVE-2021-33644 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-33644?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2021-33644, the earliest disclosed Nov 4, 2026.
- Is there a patch for CVE-2021-33644?
- Apply the vendor update addressing CVE-2021-33644 and verify that zero-size GNU long-name and long-link records are rejected. To address the separately reported incomplete-fix issue, also apply a correction that allocates an additional byte for both buffers and explicitly appends a NUL terminator after reading archive data.
- What products are affected by CVE-2021-33644?
- Feep Libtar, Fedora Project Fedora, and Openatom Openeuler.
- How severe is CVE-2021-33644?
- CVE-2021-33644 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 1.6% (76th percentile) as of Nov 4, 2026.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.