CVEfocus › CVE database › CVE-2018-20482

CVE-2018-20482

CVSS 4.7 MediumEPSS 0.5% (higher than 45% of CVEs)Published 2018-12-26Updated 2026-10-14Assigner: mitre

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).

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

24Fixed
1Fix pending
3Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04tarFixed1.29b-2ubuntu0.2UBUNTU-CVE-2018-20482
Ubuntu 16.04tarFixed1.28-2.1ubuntu0.2UBUNTU-CVE-2018-20482
Ubuntu 14.04tarFix pending1.27.1-1ubuntu0.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2018-20482
Debian 14tarFixed1.30+dfsg-3.1DEBIAN-CVE-2018-20482
Debian 13tarFixed1.30+dfsg-3.1DEBIAN-CVE-2018-20482
Debian 12tarFixed1.30+dfsg-3.1DEBIAN-CVE-2018-20482
Red Hat Enterprise Linux 8tarNot affected
Red Hat Enterprise Linux 7tarWill not fix
Will not fix
Red Hat Enterprise Linux 6tarWill not fix
Will not fix
Red Hat Enterprise Linux 5tarWill not fix
Will not fix
Alpine Linux 3.24tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.23tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.22tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.21tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.20tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.19tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.18tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.17tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.16tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.15tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.14tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.13tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.12tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.11tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.10tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.9tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.8tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.7tarFixed1.31-r0ALPINE-CVE-2018-20482
Alpine Linux 3.6tarFixed1.31-r0ALPINE-CVE-2018-20482

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.