{"cve":"CVE-2025-58058","nvd":{"published":"2025-08-28T22:15:32.577","modified":"2026-09-26T00:10:00.127","status":"Deferred","description":"xz 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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3},"cwes":["CWE-770"],"references":["https://github.com/ulikunitz/xz/commit/88ddf1d0d98d688db65de034f48960b2760d2ae2","https://github.com/ulikunitz/xz/security/advisories/GHSA-jc7w-c686-c4v9"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:07:46.309729541+00:00"},"epss":{"cve":"CVE-2025-58058","score":0.00433,"percentile":0.37586,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-jc7w-c686-c4v9","url":"https://osv.dev/vulnerability/GHSA-jc7w-c686-c4v9","summary":"github.com/ulikunitz/xz leaks memory when decoding a corrupted multiple LZMA archives","modified":"2026-09-10T03:50:27.157647943Z","packages":[{"ecosystem":"Go","name":"github.com/ulikunitz/xz","purl":"pkg:golang/github.com/ulikunitz/xz","ranges":["<0.5.15"],"fixed":["0.5.15"]}]},{"id":"GO-2025-3922","url":"https://osv.dev/vulnerability/GO-2025-3922","summary":"Memory leaks when decoding a corrupted multiple LZMA archives in github.com/ulikunitz/xz","modified":"2026-02-04T03:52:11.088726Z","packages":[{"ecosystem":"Go","name":"github.com/ulikunitz/xz","purl":"pkg:golang/github.com/ulikunitz/xz","ranges":["<0.5.15"],"fixed":["0.5.15"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}