Advisory

GHSA-25xm-hr59-7c27

Also known as: CVE-2021-29482, GO-2020-0016

Summary

github.com/ulikunitz/xz fixes readUvarint Denial of Service (DoS)

Details

Impact

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.

Patches

The problem has been fixed in release v0.5.8.

Workarounds

Limit the size of the compressed file input to a reasonable size for your use case.

References

The standard library had recently the same issue and got the CVE-2020-16845 allocated.

For more information
If you have any questions or comments about this advisory:

  • Open an issue in xz.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-05-25 18:39 UTC
Modified
2026-07-08 06:27 UTC

Affected packages and fixes

github.com/ulikunitz/xz

Go · All systems

Affected

  • introduced 0, fixed 0.5.8 (semver)

Fixed versions

0.5.8

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences