cve.bz

CVE-2018-20482 Infinite Loop

4.7 mediumExploit referenceEPSS 0.5%Fix available

Medium (4.7). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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).

Severity

CVSS 3.1

4.7 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 45th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-20482 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-20482?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-20482?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-20482 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2018-20482

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2018-20482](https://cve.bz/cve/badge/CVE-2018-20482.svg)](https://cve.bz/cve/CVE-2018-20482)

HTML:

<a href="https://cve.bz/cve/CVE-2018-20482"><img src="https://cve.bz/cve/badge/CVE-2018-20482.svg" alt="CVE-2018-20482"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:tarthrough 1.30
debian:debian_linux8.0
debian:debian_linux9.0
opensuse:leap15.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8tar1.27.1-2+deb8u2DLA-1623-1
Debian9tar1.29b-1.1+deb9u1DLA-2830-1
Debian12, 13, 14tar1.30+dfsg-3.1DEBIAN-CVE-2018-20482
Ubuntu16.04:LTStar1.28-2.1ubuntu0.2UBUNTU-CVE-2018-20482 USN-4692-1
Ubuntu18.04:LTStar1.29b-2ubuntu0.2UBUNTU-CVE-2018-20482 USN-4692-1
Ubuntu20.04:LTStar1.30+dfsg-7ubuntu0.20.04.1USN-4692-1
UbuntuPro:14.04:LTStar1.27.1-1ubuntu0.1+esm1UBUNTU-CVE-2018-20482 USN-4692-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Micro 5.1, Linux Enterprise Micro 5.2 and 2 moretar1.34-150000.3.12.1SUSE-SU-2022:1548-1
SUSELinux Enterprise Module for Basesystem 15tar1.30-3.3.2SUSE-SU-2019:0926-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSStar1.27.1-14.8.1SUSE-SU-2019:14215-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5tar1.27.1-15.6.3SUSE-SU-2020:2806-1
openSUSELeap 15.0tar1.30-lp150.7.1openSUSE-SU-2019:1237-1
openSUSELeap 15.3tar1.34-150000.3.12.1SUSE-SU-2022:1548-1
openSUSETumbleweedtar1.34-2.2openSUSE-SU-2024:11422-1
Alpinev3.6, v3.7, v3.8 and 16 moretar1.31-r0ALPINE-CVE-2018-20482

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat Enterprise Linux 8 is not affected by this vulnerability because ships already patched version of tar.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5tarWill not fix
Red Hat Enterprise Linux 6tarWill not fix
Red Hat Enterprise Linux 7tarWill not fix
Red Hat Enterprise Linux 8tarNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-20482.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON