{"id":"ALPINE-CVE-2018-20482","details":"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).","modified":"2025-12-03T22:43:46.111696Z","published":"2018-12-26T18:29:00.373Z","upstream":["CVE-2018-20482"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2018-20482"}],"affected":[{"package":{"name":"tar","ecosystem":"Alpine:v3.10","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.11","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.6","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.7","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.8","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}},{"package":{"name":"tar","ecosystem":"Alpine:v3.9","purl":"pkg:apk/alpine/tar?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.31-r0"}]}],"versions":["1.21-r0","1.22-r0","1.22-r1","1.23-r0","1.23-r1","1.24-r0","1.25-r0","1.26-r0","1.26-r1","1.27-r0","1.27.1-r0","1.28-r0","1.28-r1","1.29-r0","1.29-r1","1.30-r0","1.30-r1"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2018-20482.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}