cbcvebase.
CVE-2025-58058
published 2025-08-28

CVE-2025-58058: 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…

PriorityP427medium5.3CVSS 3.1
AVNACLPRNUINSUCNINAL
EPSS
0.39%
30.3th percentile
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.

Affected

25 ranges
VendorProductVersion rangeFixed in
debiangolang-github-ulikunitz-xz< golang-github-ulikunitz-xz 0.5.15-1 (forky)golang-github-ulikunitz-xz 0.5.15-1 (forky)
github.comulikunitz_xz>= 0 < 0.5.150.5.15
msrcazl3_containerized-data-importer_1.57.0-14
msrcazl3_containerized-data-importer_1.57.0-15
msrcazl3_containerized-data-importer_1.57.0-16
msrcazl3_jx_3.10.182-1
msrcazl3_jx_3.10.182-2
msrcazl3_jx_3.10.182-3
msrcazl3_libcontainers-common_20240213-3
msrcazl3_packer_1.9.5-10
msrcazl3_packer_1.9.5-9
msrcazl3_skopeo_1.14.4-5
msrcazl3_skopeo_1.14.4-6
msrccbl2_containerized-data-importer_1.55.0-23
msrccbl2_containerized-data-importer_1.55.0-24
msrccbl2_containerized-data-importer_1.55.0-25
msrccbl2_cri-o_1.22.3-14
msrccbl2_cri-o_1.22.3-15
msrccbl2_cri-o_1.22.3-16
msrccbl2_jx_3.2.236-21
msrccbl2_jx_3.2.236-22
msrccbl2_jx_3.2.236-23
msrccbl2_kernel_5.15.176.3-3_on_cbl_mariner_2.0
msrccbl2_kernel_5.15.180.1-1_on_cbl_mariner_2.0
ulikunitzxz< 0.5.140.5.14

CVSS provenance

nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
osv5.3MEDIUM
vendor_msrc5.5MEDIUM
vendor_debian5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.