{"id":"CVE-2021-29482","aliases":["DEBIAN-CVE-2021-29482","EUVD-2021-0896","GHSA-25xm-hr59-7c27","GO-2020-0016","RHSA-2022:1276","UBUNTU-CVE-2021-29482"],"status":"published","title":"denial of service in github.com/ulikunitz/xz","description":"xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01438,"percentile":0.73332,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-835"],"published":"2021-04-14T20:04:52Z","modified":"2026-10-23T18:03:12Z","fixes":[{"ecosystem":"Go","package":"github.com/ulikunitz/xz","fixed_in":["0.5.8"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"golang-github-ulikunitz-xz","fixed_in":["0.5.6-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"golang-github-ulikunitz-xz","fixed_in":["0.5.6-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"golang-github-ulikunitz-xz","fixed_in":["0.5.6-2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/ulikunitz/xz","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.8"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"golang-github-ulikunitz-xz","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.6-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"golang-github-ulikunitz-xz","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.6-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"golang-github-ulikunitz-xz","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.6-2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/ulikunitz/xz","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.5.8"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/ulikunitz/xz","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.5.8"}]}]},{"source":"osv","ecosystem":"Red Hat:service_mesh:2.0::el8","package":"servicemesh","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.9-3.el8"}]}],"bundled":16},{"source":"osv","ecosystem":"Red Hat:service_mesh:2.0::el8","package":"servicemesh-istioctl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.9-3.el8"}]}],"bundled":16},{"source":"osv","ecosystem":"Red Hat:service_mesh:2.0::el8","package":"servicemesh-mixc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.9-3.el8"}]}],"bundled":16},{"source":"osv","ecosystem":"Red Hat:service_mesh:2.0::el8","package":"servicemesh-mixs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.9-3.el8"}]}],"bundled":16},{"source":"osv","ecosystem":"Red Hat:service_mesh:2.0::el8","package":"servicemesh-pilot-agent","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.9-3.el8"}]}],"bundled":16},{"source":"osv","ecosystem":"Red Hat:service_mesh:2.0::el8","package":"servicemesh-pilot-discovery","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.9-3.el8"}]}],"bundled":16},{"source":"osv","ecosystem":"Red Hat:service_mesh:2.0::el8","package":"kiali","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:v1.24.7.redhat1-1.el8"}]}],"bundled":16},{"source":"osv","ecosystem":"Red Hat:service_mesh:2.0::el8","package":"servicemesh-prometheus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.14.0-16.el8.1"}]}],"bundled":16},{"source":"osv","ecosystem":"Red Hat:service_mesh:2.0::el8","package":"servicemesh-proxy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.0.9-3.el8"}]}],"bundled":16},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"golang-github-ulikunitz-xz","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.6-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"golang-github-ulikunitz-xz","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.6-2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"golang-github-ulikunitz-xz","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.6-2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"golang-github-ulikunitz-xz","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.6-2"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"golang-github-ulikunitz-xz","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.5.6-2","0.5.15-1"]}],"products":[{"vendor":"tukaani-project","product":"xz"},{"vendor":"ulikunitz","product":"xz"},{"vendor":"xz_project","product":"xz"}],"references":[{"url":"https://github.com/ulikunitz/xz/security/advisories/GHSA-25xm-hr59-7c27","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/ulikunitz/xz/commit/69c6093c7b2397b923acf82cb378f55ab2652b9b","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29482","tags":["advisory"]},{"url":"https://github.com/ulikunitz/xz/issues/35","tags":["web"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0016","tags":["web"]},{"url":"https://github.com/advisories/GHSA-25xm-hr59-7c27"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-29482","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2022:1276","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1913333","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1913338","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1921650","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1954368","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1992006","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1995656","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1999784","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2030787","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2050744","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2050746","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2050748","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2050753","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2050757","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2050758","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2057277","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2061638","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_1276.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2020-28851","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-28851","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-28851","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2020-28852","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-28852","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-28852","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-3121","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3121","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3121","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-3749","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3749","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3749","tags":["advisory"]},{"url":"https://github.com/axios/axios/commit/5b457116e31db0e88fede6c428e969e87f290929","tags":["article"]},{"url":"https://huntr.dev/bounties/1e8f07fc-c384-4ff9-8498-0690de2e8c31","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-29482","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29482","tags":["advisory","report"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-29923","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29923","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29923","tags":["advisory"]},{"url":"https://sick.codes/sick-2021-016/","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-36221","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-36221","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36221","tags":["advisory"]},{"url":"https://groups.google.com/g/golang-announce/c/uHACNfXAZqk","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-43565","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-43565","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43565","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-43824","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-43824","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43824","tags":["advisory"]},{"url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-vj5m-rch8-5r2p","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-43825","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-43825","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43825","tags":["advisory"]},{"url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-h69p-g6xg-mhhh","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-43826","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-43826","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43826","tags":["advisory"]},{"url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-cmx3-fvgf-83mf","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-21654","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21654","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21654","tags":["advisory"]},{"url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-5j4x-g36v-m283","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-21655","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21655","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21655","tags":["advisory"]},{"url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-7r5p-7fmh-jxpg","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-23606","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-23606","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23606","tags":["advisory"]},{"url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-9vp2-4cp7-vvxf","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-23635","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-23635","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23635","tags":["advisory"]},{"url":"https://istio.io/latest/news/security/istio-security-2022-003","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-24726","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24726","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24726","tags":["advisory"]},{"url":"https://istio.io/latest/news/security/istio-security-2022-004/","tags":["article"]},{"url":"https://ubuntu.com/security/CVE-2021-29482","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-29482","title":"denial of service in github.com/ulikunitz/xz","description":"xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.","status":"published","published":"2021-04-28T18:15:15Z","modified":"2024-08-03T22:11:05.477Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T14:33:06.658806Z"}],"euvd":[{"id":"EUVD-2021-0896","description":"xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.","status":"published","published":"2021-04-28T18:15:15Z","modified":"2024-08-03T22:11:05Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T03:24:44.540278Z"}],"ghsa":[{"id":"GHSA-25xm-hr59-7c27","title":"github.com/ulikunitz/xz fixes readUvarint Denial of Service (DoS)","description":"### Impact\n\nxz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input.\n\n### Patches\n\nThe problem has been fixed in release v0.5.8.\n\n### Workarounds\n\nLimit the size of the compressed file input to a reasonable size for your use case.\n\n### References\n\nThe standard library had recently the same issue and got the [CVE-2020-16845](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-16845) allocated.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [xz](https://github.com/ulikunitz/xz/issues).","status":"published","published":"2021-05-25T18:39:37Z","modified":"2024-05-31T17:46:00Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T14:37:53.025064Z"}],"nvd":[{"id":"CVE-2021-29482","description":"xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.","status":"published","published":"2021-04-28T19:15:08.587Z","modified":"2026-06-17T03:47:44Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T14:06:52.81233Z"}],"osv":[{"id":"CVE-2021-29482","description":"xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.","status":"published","published":"2021-04-28T19:15:08.587Z","modified":"2026-10-20T10:53:43.550254328Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:19.129331Z"},{"id":"DEBIAN-CVE-2021-29482","description":"xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.","status":"published","published":"2021-04-28T19:15:08.587Z","modified":"2026-10-23T18:03:12.87896143Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:34.94143Z"},{"id":"GHSA-25xm-hr59-7c27","title":"github.com/ulikunitz/xz fixes readUvarint Denial of Service (DoS)","description":"### Impact\n\nxz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input.\n\n### Patches\n\nThe problem has been fixed in release v0.5.8.\n\n### Workarounds\n\nLimit the size of the compressed file input to a reasonable size for your use case.\n\n### References\n\nThe standard library had recently the same issue and got the [CVE-2020-16845](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-16845) allocated.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [xz](https://github.com/ulikunitz/xz/issues).","status":"published","published":"2021-05-25T18:39:37Z","modified":"2026-07-08T06:27:46.198772354Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-835"],"updated_at":"2026-11-02T15:46:33.956911Z"},{"id":"RHSA-2022:1276","title":"Red Hat Security Advisory: Red Hat OpenShift Service Mesh 2.0.9 security update","status":"published","published":"2024-09-30T14:20:27Z","modified":"2026-10-17T10:01:26Z","cvss":[{"version":"3.1","score":9.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","level":"critical"}],"updated_at":"2026-11-02T15:53:09.077222Z"},{"id":"UBUNTU-CVE-2021-29482","description":"xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.","status":"published","published":"2021-04-28T19:15:00Z","modified":"2026-05-20T16:04:55.169325267Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:26.779273Z"},{"id":"GO-2020-0016","title":"Infinite loop in github.com/ulikunitz/xz","description":"An attacker can construct a series of bytes such that calling Reader.Read on the bytes could cause an infinite loop. If parsing user supplied input, this may be used as a denial of service vector.","status":"published","published":"2021-04-14T20:04:52Z","modified":"2024-05-20T16:03:47Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
