Critical Security Update for libtar: Addressing Multiple Vulnerabilities

libtar Updated 02 Oct 2025

Summary

28/01/2025
N/A
Yes i
Unrated
Not published

DLA-4033-1: libtar - security update. Affects libtar versions < 1.2.20-8+deb12u1~deb11u1. Fixed in 1.2.20-8+deb12u1~deb11u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libtar is a library designed for handling tar archives in a variety of applications. It provides functionalities for creating, extracting, and manipulating tar files, which are commonly used for file compression and archiving in Unix-like operating systems. The library is widely utilized in various software packages, making its security crucial for maintaining the integrity and safety of applications that depend on it.

Vulnerability Detail

The vulnerabilities identified in libtar, specifically CVE-2021-33643, CVE-2021-33644, CVE-2021-33645, and CVE-2021-33646, stem from improper handling of tar file formats. These issues could allow an attacker to exploit the library by crafting malicious tar files that, when processed, could lead to arbitrary code execution, denial of service, or data corruption. The vulnerabilities arise from insufficient validation of input data, making it imperative for users to address them promptly to safeguard their systems.

How To Fix

Minimum fixed version

1.2.20-8+deb12u1~deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libtar

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can avoid processing untrusted tar files until the package is updated. This can help mitigate the risk of exploitation while waiting for the official patch to be applied.

Conclusion

In summary, the libtar library has been identified with critical vulnerabilities that can compromise system security. It is essential for users to update to the patched version to mitigate risks. Additionally, utilizing tools like Vulert can enhance vulnerability management in open-source software.

See every vulnerability recorded for libtar →

Share this vulnerability

FAQ

The main vulnerabilities include improper handling of tar file formats, which can lead to arbitrary code execution and denial of service.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

If you cannot update libtar immediately, avoid processing untrusted tar files as a temporary workaround.

More information can be found in the CVE records: CVE-2021-33643, CVE-2021-33644, CVE-2021-33645, and CVE-2021-33646.

Vulert monitors and alerts for open-source vulnerabilities in software using just a manifest file like package-lock.json, providing real-time insights into potential security issues.

Related vulnerabilities

Recent vulnerabilities recorded for libtar.

How To Fix

Minimum fixed version

1.2.20-8+deb12u1~deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libtar

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback