{"schemaVersion":3,"id":"CVE-2018-20482","aliases":["ALPINE-CVE-2018-20482","MGASA-2019-0034","UBUNTU-CVE-2018-20482","DEBIAN-CVE-2018-20482","DLA-1623-1","DLA-2830-1"],"status":"published","duplicateOf":null,"title":null,"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).","dates":{"published":"2018-12-26T18:00:00.000Z","modified":"2026-10-14T06:30:41.972Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.7,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":1.9,"severity":"low","vector":"AV:L/AC:M/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":2.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":2.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":4.7,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":2.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.7,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":2.6,"impact":6,"computed":true}]},"epss":{"probability":0.0053,"percentile":0.43671,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.0040000000000000105,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00526},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0053,"percentile":0.43671}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00526,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0053,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0053,"percentile":0.43671}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_B8D1A57757CA8142","name":"Exploit Reference (news.ycombinator.com)","source":"reference","url":"https://news.ycombinator.com/item?id=18745431","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition ('Infinite Loop')","description":"The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/835.html"}],"affected":[{"vendor":"alpine","product":"tar","name":"tar","label":"tar","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/tar","purlType":"apk","versions":[{"text":"< 1.31-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.31-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"tar","name":"tar","label":"tar","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/tar","purlType":"deb","versions":[{"text":"< 1.29b-1.1+deb9u1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.27.1-2+deb8u2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.30+dfsg-3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.29b-1.1+deb9u1 | < 1.27.1-2+deb8u2 | < 1.30+dfsg-3.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"tar","name":"tar","label":"tar","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/tar","purlType":"deb","versions":[{"text":"< 1.27.1-1ubuntu0.1+esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.28-2.1ubuntu0.2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.29b-2ubuntu0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.27.1-1ubuntu0.1+esm1 | < 1.28-2.1ubuntu0.2 | < 1.29b-2ubuntu0.2","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0 | 9.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"gnu","product":"tar","name":"tar","label":"tar","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.30","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.30","eol":null,"hubHref":"/vendor/gnu/tar"},{"vendor":"mageia","product":"tar","name":"tar","label":"tar","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/tar","purlType":"rpm","versions":[{"text":"< 1.31-1.mga6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.31-1.mga6","eol":null,"hubHref":null},{"vendor":"opensuse","product":"leap","name":"leap","label":"leap","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"15.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"15.0","eol":{"isEol":true,"eolDate":"2019-12-03T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"15.0","label":"Leap 15.0","eolFrom":"2019-12-03T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"opensuse","label":"openSUSE","category":"os"}},"hubHref":"/vendor/opensuse/leap"}],"affectedCount":7,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://utcc.utoronto.ca/~cks/space/blog/sysadmin/TarFindingTruncateBug","label":"utcc.utoronto.ca/~cks/space/blog/sysadmin/TarFindingTruncateBug","hostname":"utcc.utoronto.ca","tags":["X Refsource MISC","Patch","Third Party Advisory","REPORT"]},{"url":"http://git.savannah.gnu.org/cgit/tar.git/commit/?id=c15c42ccd1e2377945fd0414eca1a49294bff454","label":"git.savannah.gnu.org/cgit/tar.git/commit/?id=c15c42ccd1e2377945fd0414eca1a49294bff454","hostname":"git.savannah.gnu.org","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/12/msg00023.html","label":"lists.debian.org/debian-lts-announce/2018/12/msg00023.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://news.ycombinator.com/item?id=18745431","label":"news.ycombinator.com/item?id=18745431","hostname":"news.ycombinator.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","REPORT"]},{"url":"http://www.securityfocus.com/bid/106354","label":"www.securityfocus.com/bid/106354","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/201903-05","label":"security.gentoo.org/glsa/201903-05","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]},{"url":"http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00023.html","label":"lists.gnu.org/archive/html/bug-tar/2018-12/msg00023.html","hostname":"lists.gnu.org","tags":["X Refsource MISC","Third Party Advisory","REPORT"]},{"url":"https://twitter.com/thatcks/status/1076166645708668928","label":"twitter.com/thatcks/status/1076166645708668928","hostname":"twitter.com","tags":["X Refsource MISC","Patch","Third Party Advisory","REPORT"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00077.html","label":"lists.opensuse.org/opensuse-security-announce/2019-04/msg00077.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/11/msg00025.html","label":"lists.debian.org/debian-lts-announce/2021/11/msg00025.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-20482","label":"security.alpinelinux.org/vuln/CVE-2018-20482","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2019-0034.html","label":"advisories.mageia.org/MGASA-2019-0034.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=24117","label":"bugs.mageia.org/show_bug.cgi?id=24117","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://lists.gnu.org/archive/html/bug-tar/2019-01/msg00000.html","label":"lists.gnu.org/archive/html/bug-tar/2019-01/msg00000.html","hostname":"lists.gnu.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2018-20482","label":"ubuntu.com/security/CVE-2018-20482","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4692-1","label":"ubuntu.com/security/notices/USN-4692-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-20482","label":"www.cve.org/CVERecord?id=CVE-2018-20482","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-20482","label":"security-tracker.debian.org/tracker/CVE-2018-20482","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"cert-portal.siemens.com/productcert/html/ssa-398330.html","hostname":"cert-portal.siemens.com","tags":[]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2019:1237-1","OPENSUSE-SU-2024:11422-1","SUSE-SU-2019:0926-1","SUSE-SU-2019:14215-1","SUSE-SU-2020:2806-1","SUSE-SU-2022:1548-1","USN-4692-1"],"duplicates":[],"related":["OPENSUSE-SU-2019:1237-1","OPENSUSE-SU-2024:11422-1","SUSE-SU-2019:0926-1","SUSE-SU-2019:14215-1","SUSE-SU-2020:2806-1","SUSE-SU-2022:1548-1","USN-4692-1"]},"timeline":[{"kind":"published","date":"2018-12-26T18:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-14T06:30:41.972Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T21:20:48.952Z","stale":false,"partial":false}}