---
title: "CVE-2025-58058"
canonical_url: "https://pkgseek.com/security/CVE-2025-58058"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# 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 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 alloc…

CVE-2025-58058 严重级别为 MEDIUM (5.3)，共索引 12 条受影响软件包构建记录，涉及 3 个发行版。

- **级别 / 评分**: MEDIUM (5.3)
- **受影响构建数**: 12
- **涉及发行版**: 3
- **已标明修复版本发行版**: Fedora, openSUSE

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | golang-github-ulikunitz-xz-dev | 0.5.6-2 | — |
| Fedora | 42 | golang-github-projectdiscovery-mapcidr | 1.1.13-5.fc41 | 1.1.97-1.fc42 |
| Fedora | 42 | opentofu | 1.9.0-1.fc42 | 1.10.7-1.fc42 |
| openSUSE | 15.6 | govulncheck-vulndb | 0.0.20250829T154226-150000.1.104.1 | 0.0.20250918T182144-150000.1.107.1 |
| openSUSE | 15.6 | rekor | 1.3.10-150400.4.25.1 | 1.4.3-150400.4.28.1 |
| openSUSE | 15.6 | trivy | 0.64.1-bp156.2.12.1 | 0.68.2-bp156.2.15.1 |
| openSUSE | 15.6 | warewulf4 | 4.6.0-150500.6.34.1 | 4.6.4-150500.6.37.1 |
| openSUSE | 15.6 | warewulf4-dracut | 4.6.0-150500.6.34.1 | 4.6.4-150500.6.37.1 |
| openSUSE | 15.6 | warewulf4-man | 4.6.0-150500.6.34.1 | 4.6.4-150500.6.37.1 |
| openSUSE | 15.6 | warewulf4-overlay | 4.6.0-150500.6.34.1 | 4.6.4-150500.6.37.1 |
| openSUSE | 15.6 | warewulf4-overlay-slurm | 4.6.0-150500.6.34.1 | 4.6.4-150500.6.37.1 |
| openSUSE | 15.6 | warewulf4-reference-doc | 4.6.0-150500.6.34.1 | 4.6.4-150500.6.37.1 |
