{"cve":"CVE-2021-29482","nvd":{"published":"2021-04-28T19:15:08.587","modified":"2026-06-17T03:47:44.000","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-835"],"references":["https://github.com/ulikunitz/xz/commit/69c6093c7b2397b923acf82cb378f55ab2652b9b","https://github.com/ulikunitz/xz/security/advisories/GHSA-25xm-hr59-7c27","https://github.com/ulikunitz/xz/commit/69c6093c7b2397b923acf82cb378f55ab2652b9b","https://github.com/ulikunitz/xz/security/advisories/GHSA-25xm-hr59-7c27"],"products":["xz_project:xz"],"source":"nvd","synced_at":"2026-10-19T21:18:09.669877188+00:00"},"epss":{"cve":"CVE-2021-29482","score":0.01438,"percentile":0.73149,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-25xm-hr59-7c27","url":"https://osv.dev/vulnerability/GHSA-25xm-hr59-7c27","summary":"github.com/ulikunitz/xz fixes readUvarint Denial of Service (DoS)","modified":"2026-07-08T06:27:46.198772354Z","packages":[{"ecosystem":"Go","name":"github.com/ulikunitz/xz","purl":"pkg:golang/github.com/ulikunitz/xz","ranges":["<0.5.8"],"fixed":["0.5.8"]}]},{"id":"GO-2020-0016","url":"https://osv.dev/vulnerability/GO-2020-0016","summary":"Infinite loop in github.com/ulikunitz/xz","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/ulikunitz/xz","purl":"pkg:golang/github.com/ulikunitz/xz","ranges":["<0.5.8"],"fixed":["0.5.8"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}