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

- Severity: Medium 6.0 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-07-07T19:47:47.662Z
- Modified: 2026-10-25T20:10:00.147Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- gnuwget wget: up to 1.25.0 (not affected: c2640fe5171c59f87c58dc9fcb195b2d18b010ee)
- gnu wget: up to 1.25.0

## Every score

- VulnCheck: CVSS:4.0 6.0 Medium `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H`

## References

- <https://gitlab.com/gnuwget/wget/-/commit/c2640fe5171c59f87c58dc9fcb195b2d18b010ee> (patch)
- <https://www.vulncheck.com/advisories/gnu-wget-heap-buffer-overflow-via-convert-fname-in-url-c> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2026-58471](https://www.cve.org/CVERecord?id=CVE-2026-58471), CVE Terms of Use, modified 2026-07-14
- NVD: [CVE-2026-58471](https://nvd.nist.gov/vuln/detail/CVE-2026-58471), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-58471 · Whole record: https://cve.day/CVE-2026-58471.json · Rebuilt by cve.day 2026-11-25T22:59:27.317Z
