CVE-2021-29482High· 7.5▾ Twilightgithub.com/ulikunitz/xz fixes readUvarint Denial of Service (DoS)
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 41.3 · likelihood 0.3 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 9.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
1.4%
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.
Limit the size of the compressed file input to a reasonable size for your use case.
The standard library had recently the same issue and got the CVE-2020-16845 allocated.
If you have any questions or comments about this advisory:
github.com/ulikunitz/xz < 0.5.8Upgrade to a patched release:
github.com/ulikunitz/xz 0.5.8