{"id":"CVE-2025-58058","title":"xz is a pure golang package for reading and writing xz-compressed files","summary":"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 …","severity":"medium","cvss":5.3,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","cwe":["CWE-770"],"published":"2025-08-28","updated":"2026-09-26","sourceUpdated":"2026-09-26T00:10:00.127","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-58058","references":[{"url":"https://github.com/ulikunitz/xz/commit/88ddf1d0d98d688db65de034f48960b2760d2ae2","label":"security-advisories@github.com"},{"url":"https://github.com/ulikunitz/xz/security/advisories/GHSA-jc7w-c686-c4v9","label":"security-advisories@github.com"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-58058.json"},{"url":"https://access.redhat.com/security/cve/CVE-2025-58058"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2391585"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-58058"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58058"},{"url":"https://access.redhat.com/errata/RHSA-2026:37387"},{"url":"https://access.redhat.com/errata/RHSA-2026:26257"},{"url":"https://access.redhat.com/errata/RHSA-2026:26254"}],"tags":["nvd","csaf","vex","red-hat"],"epss":0.00433,"epssPercentile":0.37384,"ingestedAt":"2026-09-26T00:22:39.896Z","vendor":"Red Hat","product":"Red Hat Openshift Data Foundation 4.22","affected":["assisted_installer_for_red_hat_openshift_container_platform 2","confidential_compute_attestation","kernel_module_management_operator_for_red_hat_openshift","logging_subsystem_for_red_hat_openshift","logical_volume_manager_storage","migration_toolkit_for_containers","migration_toolkit_for_virtualization","multicluster_engine_for_kubernetes","network_observability_operator","node_healthcheck_operator","openshift_api_for_data_protection","openshift_developer_tools_and_services","openshift_lightspeed","openshift_pipelines","openshift_serverless","openshift_service_mesh 3","openshift_source_to_image_s2i","power_monitoring_for_red_hat_openshift","advanced_cluster_management_for_kubernetes 2","advanced_cluster_security 4","build_of_kueue","developer_hub","enterprise_linux 10","enterprise_linux 7","enterprise_linux 8","enterprise_linux 9","enterprise_linux_ai_rhel_ai","openshift_ai_rhoai","openshift_container_platform 4","openshift_dev_spaces","openshift_gitops","openshift_virtualization 4","openstack_platform 18.0","quay 3","trusted_application_pipeline","trusted_artifact_signer","trusted_profile_analyzer","openshift_data_foundation 4.22","multicluster_engine_for_kubernetes 2.8"],"patched":["openshift_data_foundation 4.22","multicluster_engine_for_kubernetes 2.8"],"slug":"CVE-2025-58058","body":"## Overview\n\nxz 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Vendor advisories\n\n- **RHSA-2026:37387** · Red Hat · fixed in: Red Hat Openshift Data Foundation 4.22 · released 2026-07-09 · [advisory](https://access.redhat.com/errata/RHSA-2026:37387)\n- **RHSA-2026:26257** · Red Hat · fixed in: multicluster engine for Kubernetes 2.8 · released 2026-06-16 · [advisory](https://access.redhat.com/errata/RHSA-2026:26257)\n- **RHSA-2026:26254** · Red Hat · fixed in: multicluster engine for Kubernetes 2.8 · released 2026-06-16 · [advisory](https://access.redhat.com/errata/RHSA-2026:26254)\n- **Red Hat VEX** · Moderate · affected: Assisted Installer for Red Hat OpenShift Container Platform 2, Confidential Compute Attestation, Kernel Module Management Operator for Red Hat Openshift, Logging Subsystem for Red Hat OpenShift, Logical Volume Manager Storage, Migration Toolkit for Containers, … · no fix planned: Assisted Installer for Red Hat OpenShift Container Platform 2, Confidential Compute Attestation, Kernel Module Management Operator for Red Hat Openshift, Logging Subsystem for Red Hat OpenShift, … · updated 2026-10-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-58058.json)","depth":"sunlit","depthScore":29,"depthScoreParts":{"impact":29.2,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}