Loop with Unreachable Exit Condition ('Infinite Loop') Affecting tar package, versions *


Severity

Recommended
low

Based on CentOS security rating.

Threat Intelligence

EPSS
0.04% (5th 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 IDSNYK-CENTOS6-TAR-1998421
  • published26 Jul 2021
  • disclosed26 Dec 2018

Introduced: 26 Dec 2018

CVE-2018-20482  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

There is no fixed version for Centos:6 tar.

NVD Description

Note: Versions mentioned in the description apply only to the upstream tar package and not the tar package as distributed by Centos. See How to fix? for Centos:6 relevant fixed versions and status.

GNU Tar through 1.30, when --sparse is used, mishandles file shrinkage during read access, which allows local users to cause a denial of service (infinite read loop in sparse_dump_region in sparse.c) by modifying a file that is supposed to be archived by a different user's process (e.g., a system backup running as root).

CVSS Scores

version 3.1