Skip to content

CVE-2021-29482 denial of service in github.com/ulikunitz/xz

HighCVSS 7.5 EPSS 1.4%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
ulikunitz github.com/ulikunitz/xz(Go) < 0.5.8 0.5.8
debian/golang-github-ulikunitz-xz(Debian:12) < 0.5.6-2 0.5.6-2
debian/golang-github-ulikunitz-xz(Debian:13) < 0.5.6-2 0.5.6-2
debian/golang-github-ulikunitz-xz(Debian:14) < 0.5.6-2 0.5.6-2
ubuntu/golang-github-ulikunitz-xz(Ubuntu:22.04) All versions No fix listed
xz project xz < 0.5.8 0.5.8
ubuntu/golang-github-ulikunitz-xz(Ubuntu:24.04) All versions No fix listed
ulikunitz github.com/ulikunitz/xz = < 0.5.8 No fix listed
ubuntu/golang-github-ulikunitz-xz(Ubuntu:26.04) All versions No fix listed

References