{"id":"CVE-2021-29482","details":"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.","aliases":["GHSA-25xm-hr59-7c27","GO-2020-0016"],"modified":"2026-08-18T13:42:19.732165Z","published":"2021-04-28T19:15:08.587Z","references":[{"type":"ADVISORY","url":"https://github.com/ulikunitz/xz/security/advisories/GHSA-25xm-hr59-7c27"},{"type":"FIX","url":"https://github.com/ulikunitz/xz/commit/69c6093c7b2397b923acf82cb378f55ab2652b9b"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ulikunitz/xz","events":[{"introduced":"0"},{"fixed":"492fb8161cff03dd43fd938e40ecede6c6ffd8eb"},{"fixed":"69c6093c7b2397b923acf82cb378f55ab2652b9b"}],"database_specific":{"cpe":"cpe:2.3:a:xz_project:xz:*:*:*:*:*:go:*:*","extracted_events":[{"introduced":"0"},{"fixed":"0.5.8"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v0.5.7","v0.5.6","v0.5.5","v0.5.4","v0.5.3","v0.5.2","v0.5.1","v0.5","v0.4.1","v0.4","v0.3.1","v0.3","v0.2","v0.1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-29482.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}