# CVE-2026-58471: GNU Wget 1.25.0 Heap Buffer Overflow via convert\_fname() in url.c

- Priority: **Routine**
- Reason: Not severe (CVSS 6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-07 · Modified: 2026-07-14
- Aliases: UBUNTU-CVE-2026-58471, DEBIAN-CVE-2026-58471, CGA-2x93-32q9-p3mg, CGA-fw8j-xmwg-pvcf, CGA-gqw4-96pw-fw38, CGA-wcr9-rxgr-hrq5
- Record: https://cvemate.com/vulnerability/CVE-2026-58471 · JSON: https://cvemate.com/vulnerability/CVE-2026-58471/json

## Description

```text
GNU Wget through 1.25.0, fixed in commit c2640fe, contains a heap buffer overflow vulnerability in the convert_fname() function within src/url.c that allows remote attackers to trigger memory corruption through a server-supplied filename requiring character set conversion. When the output buffer is too small during iconv E2BIG reallocation, the reallocation logic miscalculates the remaining space, leading to a heap buffer overflow that can be exploited via a maliciously crafted server response.
```

## Signals

- CVSS: 7.1 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
- EPSS: 0.315%, percentile 26.334%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard wget (Chainguard): \< 1.25.0-r15 \| All versions (No fix recorded)
- chainguard wget-doc (Chainguard): All versions (No fix recorded) \| \< 1.25.0-r15
- wolfi wget (Wolfi): \< 1.25.0-r15 \| All versions (No fix recorded)
- wolfi wget-doc (Wolfi): All versions (No fix recorded) \| \< 1.25.0-r15
- debian wget (Debian): All versions (No fix recorded)
- ubuntu wget (Ubuntu): \< 1.19.4-1ubuntu2.2+esm3 \| \< 1.20.3-1ubuntu2.1+esm2 \| \< 1.21.2-2ubuntu1.3 \| \< 1.21.4-1ubuntu4.3 \| All versions (No fix recorded) \| \< 1.25.0-2ubuntu4.2
- gnu wget: ≤ 1.25.0
- gnuwget wget: ≤ 1.25.0

## References

- <https://gitlab.com/gnuwget/wget/-/commit/c2640fe5171c59f87c58dc9fcb195b2d18b010ee>
- <https://www.vulncheck.com/advisories/gnu-wget-heap-buffer-overflow-via-convert-fname-in-url-c>
- <https://ubuntu.com/security/CVE-2026-58471>
- <https://www.cve.org/CVERecord?id=CVE-2026-58471>
- <https://ubuntu.com/security/notices/USN-8543-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-58471>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58471.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-58471>
- <https://gitlab.com/gnuwget/wget>

---

Data as of 2026-12-05T03:20:58.457Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
