CVE-2026-58471 GNU Wget 1.25.0 Heap Buffer Overflow via convert_fname() in url.c
Remote attackers can trigger heap buffer overflow in GNU Wget via malicious server responses, potentially leading to code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-58471?
CVE-2026-58471 is a medium-severity memory corruption vulnerability in gnuwget wget, published on 7 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-122
Which versions are affected by CVE-2026-58471?
It affects 1 product.
Products include Gnu Wget.
How do I fix CVE-2026-58471?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2026-58471 being exploited?
There is no known exploitation of CVE-2026-58471 in the wild and no public exploit code.
Other vulnerabilities in gnuwget wget
Sources
Also known as BELL-CVE-2026-58471, DEBIAN-CVE-2026-58471, ECHO-333a-02b0-5dac, GHSA-vv88-699v-w5rh, JLSEC-2026-1160, ROOT-OS-ALPINE-322-CVE-2026-58471 and 5 more.