Improper Check or Handling of Exceptional Conditions in xz - #VU172299
Published: December 2, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause silent data loss by making an application produce truncated, undecodable LZMA2 or xz archives.
The vulnerability exists due to improper error handling in lzma.Writer2 and its xz.Writer wrapper when an uncompressed chunk header declares more bytes than the encoder retains and closing the writer suppresses the resulting flush error. A remote attacker can supply incompressible data to an application configured with a small DictCap to corrupt archives during finalization or an explicit flush.