CVE-2018-20482: GNU Tar - Denial of Service
- Cve: CVE-2018-20482
- Name: GNU Tar - Denial of Service
- Description: 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).
- Impact: Local users can cause a denial of service by triggering an infinite read loop, potentially affecting system stability and availability.
- Remediation: Update to the latest version of GNU Tar where this issue is fixed.
- Vulnerability type: denial_of_service
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.7
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.0053
- Epss percentile: 0.45739
- Assignee: [email protected]
- Published at: 2018-12-26T18:29:00Z
- Age in days: 2890
- Modified at: 2026-10-14T07:16:43Z
- Patch available: yes
- Public exploits total: 1
- References total: 11
- Products total: 3
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-20482
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-835 | Loop with Unreachable Exit Condition |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://news.ycombinator.com/item?id=18745431 | nvd | 2018-12-26 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| http://git.savannah.gnu.org/cgit/tar.git/commit/?id=c15c42ccd1e2377945fd0414eca1a49294bff454 | Patch, Third Party Advisory |
| https://twitter.com/thatcks/status/1076166645708668928 | Patch, Third Party Advisory |
| https://utcc.utoronto.ca/~cks/space/blog/sysadmin/TarFindingTruncateBug | Patch, Third Party Advisory |
| https://news.ycombinator.com/item?id=18745431 | Exploit, Third Party Advisory |
| http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00023.html | Third Party Advisory |
| http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00077.html | Mailing List, Third Party Advisory |
| http://www.securityfocus.com/bid/106354 | Third Party Advisory, VDB Entry |
| https://lists.debian.org/debian-lts-announce/2018/12/msg00023.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/11/msg00025.html | Mailing List, Third Party Advisory |
| https://security.gentoo.org/glsa/201903-05 | Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| gnu:tar | <= 1.30 | /v1/products/gnu/tar |
| debian:debian_linux | = 9.0, = 8.0 | /v1/products/debian/debian_linux |
| opensuse:leap | = 15.0 | /v1/products/opensuse/leap |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2018-12-26
- Authentication required: yes
- Exposed hosts: 4706702
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports