Moderate Security Vulnerability in libtar: Out-of-Bounds Reads and Memory Leaks

libtar Updated 27 Dec 2025

Summary

27/12/2025
N/A
Yes i
High
7.5

RLSA-2023:2898: Moderate: libtar security update. Affects libtar versions < 0:1.2.20-17.el8. Fixed in 0:1.2.20-17.el8. 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 Your last release was probably never penetration tested 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 C library designed for manipulating tar archives, supporting both the strict POSIX tar format and various GNU extensions. It is widely used in applications that require archive management. However, recent vulnerabilities have been identified that could potentially compromise the integrity and security of applications utilizing this library.

Vulnerability Detail

The vulnerabilities in libtar include out-of-bounds reads in the gnu_longlink and gnu_longname functions (CVE-2021-33643 and CVE-2021-33644), which can lead to unauthorized access to memory. Additionally, there are memory leaks in the th_read() function (CVE-2021-33645 and CVE-2021-33646), which can degrade system performance over time. These vulnerabilities can be exploited by attackers to execute arbitrary code or crash the application, posing significant risks to system security.

How To Fix

Minimum fixed version

0:1.2.20-17.el8

This is the first release that contains the fix.

sudo dnf update libtar

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

Workaround

As a temporary workaround, if updating the package is not feasible, consider limiting the use of libtar in your applications or implementing additional security measures to monitor memory access patterns. However, this is not a long-term solution and updating is strongly recommended.

Conclusion

The vulnerabilities identified in libtar pose significant risks to applications that utilize this library. It is crucial to update to the latest patched version to mitigate these risks. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for libtar →

Share this vulnerability

FAQ

The main vulnerabilities include out-of-bounds reads and memory leaks that can lead to unauthorized memory access and performance degradation.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

The CVSS score for this vulnerability is 7.5, indicating a moderate severity level.

Yes, a patch is available in the form of an updated libtar package version 0:1.2.20-17.el8.

If you cannot update the package, consider implementing additional security measures to monitor memory access, but plan to update as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for libtar.

How To Fix

Minimum fixed version

0:1.2.20-17.el8

This is the first release that contains the fix.

sudo dnf update 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