{"id":"CVE-2021-29482","published":"2021-04-28T18:15:15Z","modified":"2024-08-03T22:11:05Z","title":"denial of service in github.com/ulikunitz/xz","vendor":"ulikunitz","product":"xz","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01438,"percentile":0.73797,"provenance":"source"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/ulikunitz/xz/security/advisories/GHSA-25xm-hr59-7c27","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ulikunitz/xz/commit/69c6093c7b2397b923acf82cb378f55ab2652b9b","tags":["x_refsource_MISC"]}],"priority":{"score":20.0,"factors":[{"name":"EPSS percentile","points":14.76},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"ulikunitz","affectedVersions":[{"vendor":"ulikunitz","product":"xz","versions":["< 0.5.8"]}],"affected":[{"ecosystem":"Go","package":"github.com/ulikunitz/xz","vulnerableRanges":["<0.5.8"],"patched":["0.5.8"],"from":["GHSA-25xm-hr59-7c27","GO-2020-0016"],"provenance":"source"}],"summary":{"text":"The ulikunitz/xz Go library, which handles the xz compression container format, has a flaw in its readUvarint function where a loop may never terminate when processing malicious input. An attacker who can supply crafted xz-compressed data over the network, with no authentication or user interaction required, can cause a denial of service by hanging the process that parses it, and the flaw is fixed in v0.5.8 with a workaround of capping compressed input size.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:27Z"},"euvd":{"id":"EUVD-2021-0896","exploited":false,"provenance":"source"}}