{"id":"CVE-2018-20482","state":"PUBLISHED","title":"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_","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).","publishedAt":"2018-12-26T18:00:00.000Z","updatedAt":"2026-10-14T06:30:41.972Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"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","https://cert-portal.siemens.com/productcert/html/ssa-398330.html"],"weaknesses":[],"ingestedAt":"2026-10-29T19:44:39.424Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2018/20xxx/CVE-2018-20482.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2018-20482","state":"PUBLISHED","datePublished":"2018-12-26T18:00:00.000Z","dateUpdated":"2026-10-14T06:30:41.972Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2018-12-26T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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)."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://utcc.utoronto.ca/~cks/space/blog/sysadmin/TarFindingTruncateBug","tags":["x_refsource_MISC"]},{"url":"http://git.savannah.gnu.org/cgit/tar.git/commit/?id=c15c42ccd1e2377945fd0414eca1a49294bff454","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/12/msg00023.html","name":"[debian-lts-announce] 20181231 [SECURITY] [DLA 1623-1] tar security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://news.ycombinator.com/item?id=18745431","tags":["x_refsource_MISC"]},{"url":"http://www.securityfocus.com/bid/106354","name":"106354","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://security.gentoo.org/glsa/201903-05","name":"GLSA-201903-05","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00023.html","tags":["x_refsource_MISC"]},{"url":"https://twitter.com/thatcks/status/1076166645708668928","tags":["x_refsource_MISC"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00077.html","name":"openSUSE-SU-2019:1237","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/11/msg00025.html","name":"[debian-lts-announce] 20211128 [SECURITY] [DLA 2830-1] tar security update","tags":["mailing-list","x_refsource_MLIST"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2021-11-28T14:06:09.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2018-12-26T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-20482","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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)."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://utcc.utoronto.ca/~cks/space/blog/sysadmin/TarFindingTruncateBug","refsource":"MISC","url":"https://utcc.utoronto.ca/~cks/space/blog/sysadmin/TarFindingTruncateBug"},{"name":"http://git.savannah.gnu.org/cgit/tar.git/commit/?id=c15c42ccd1e2377945fd0414eca1a49294bff454","refsource":"MISC","url":"http://git.savannah.gnu.org/cgit/tar.git/commit/?id=c15c42ccd1e2377945fd0414eca1a49294bff454"},{"name":"[debian-lts-announce] 20181231 [SECURITY] [DLA 1623-1] tar security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2018/12/msg00023.html"},{"name":"https://news.ycombinator.com/item?id=18745431","refsource":"MISC","url":"https://news.ycombinator.com/item?id=18745431"},{"name":"106354","refsource":"BID","url":"http://www.securityfocus.com/bid/106354"},{"name":"GLSA-201903-05","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/201903-05"},{"name":"http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00023.html","refsource":"MISC","url":"http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00023.html"},{"name":"https://twitter.com/thatcks/status/1076166645708668928","refsource":"MISC","url":"https://twitter.com/thatcks/status/1076166645708668928"},{"name":"openSUSE-SU-2019:1237","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00077.html"},{"name":"[debian-lts-announce] 20211128 [SECURITY] [DLA 2830-1] tar security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2021/11/msg00025.html"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://utcc.utoronto.ca/~cks/space/blog/sysadmin/TarFindingTruncateBug","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://git.savannah.gnu.org/cgit/tar.git/commit/?id=c15c42ccd1e2377945fd0414eca1a49294bff454","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/12/msg00023.html","name":"[debian-lts-announce] 20181231 [SECURITY] [DLA 1623-1] tar security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://news.ycombinator.com/item?id=18745431","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.securityfocus.com/bid/106354","name":"106354","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://security.gentoo.org/glsa/201903-05","name":"GLSA-201903-05","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00023.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://twitter.com/thatcks/status/1076166645708668928","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00077.html","name":"openSUSE-SU-2019:1237","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/11/msg00025.html","name":"[debian-lts-announce] 20211128 [SECURITY] [DLA 2830-1] tar security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T12:05:16.165Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-14T06:30:41.972Z"},"x_adpType":"supplier"}]}}}