xz is a pure golang package for reading and writing xz-compressed files. Prior to version 0.5.14, it is…
Historical advisory recorded 25 Oct 2026 03:17:18 UTC. Read the latest advisory.
nvd · CVE-2025-58058
Publishedxz is a pure golang package for reading and writing xz-compressed files. Prior to version 0.5.14, it is possible to put data in front of an LZMA-encoded byte stream without detecting the situation while reading the header. This can lead to increased memory consumption because the current implementation allocates the full decoding buffer directly after reading the header. The LZMA header doesn't include a magic number or has a checksum to detect such an issue according to the specification. Note that the code recognizes the issue later while reading the stream, but at this time the memory allocation has already been done. This issue has been patched in version 0.5.14.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2025-58058 · CVE overview and exploitation status
nvd · CVE-2025-58058
This historical advisory does not include today's related changes. Open the latest advisory to find current connections.