High severity · published Jul 7, 2026
CVE-2026-58471
GNU Wget 1.25.0 Heap Buffer Overflow via convert_fname() in url.c
7.1
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
Low
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 33% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
WG
wget · gnuwget
through 1.25.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-58471
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-58471
Patch
https://gitlab.com/gnuwget/wget/-/commit/c2640fe5171c59f87c58dc9fcb195b2d18b010ee
Patch
https://www.vulncheck.com/advisories/gnu-wget-heap-buffer-overflow-via-convert-fname-in-url-c
More from wget
7.5
CVE-2026-58469
GNU Wget 1.25.0 Heap Buffer Underread via Metalink URL Parsing
7.1
CVE-2026-58472
GNU Wget 1.25.0 Heap Buffer Overflow via HTML Attribute Encoding
5.3
CVE-2026-58470
GNU Wget 1.25.0 Integer Overflow via Content-Range Header Parsing
