CVE-2021-29482
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 0.5.6-2 |
| sid | Fixed | 0.5.6-2 |
| forky | Fixed | 0.5.6-2 |
| bullseye | Fixed | 0.5.6-2 |
| bookworm | Fixed | 0.5.6-2 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Go | github.com/ulikunitz/xz | <0.5.8 | 0.5.8 |
References
- https://github.com/ulikunitz/xz/security/advisories/GHSA-25xm-hr59-7c27
- https://nvd.nist.gov/vuln/detail/CVE-2021-29482
- https://github.com/ulikunitz/xz/issues/35
- https://github.com/ulikunitz/xz/commit/69c6093c7b2397b923acf82cb378f55ab2652b9b
- https://pkg.go.dev/vuln/GO-2020-0016
- https://security-tracker.debian.org/tracker/CVE-2021-29482
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.