Use After Free Affecting libtar package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.7% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-LIBTAR-10077389
  • published8 May 2025
  • disclosed20 Dec 2022
  • creditUnknown

Introduced: 20 Dec 2022

CVE-2021-33640  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

There is no fixed version for libtar.

Overview

Affected versions of this package are vulnerable to Use After Free in the tar_close() function in libtar.c, which releases the memory pointed to by pointer t and then continues to use the pointer t: free_longlink_longname(t->th_buf). This results in denial of service.

CVSS Base Scores

version 3.1