CVE-2021-29482
Xz Project Xz vulnerability
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
Xz. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Xz Project Xz runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/ulikunitz/xz/commit/69c6093c7b2397b923acf82cb378f55ab2652b9b · Patch
- github.com/ulikunitz/xz/security/advisories/GHSA-25xm-hr59-7c27 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-29482
- github.com/ulikunitz/xz/issues/35
- pkg.go.dev/vuln/GO-2020-0016
- github.com/advisories/GHSA-25xm-hr59-7c27
- nvd.nist.gov/vuln/detail/CVE-2021-29482
- cve.org/CVERecord?id=CVE-2021-29482
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.