CVE-2026-58471CWE-122

GNU Wget 1.25.0 Heap Buffer Overflow via convert_fname() in url.c

Medium · published July 7, 2026

CVSS v4.0
6.0
EPSS
0%
Percentile
31.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
6.0 · MEDIUM
Vector
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
EPSS
0.00390 · 31.9th percentile
Weakness
CWE-122 · Heap-based Buffer Overflow
Published
2026-07-07T19:47Z
EPSS history
Timeline
  • 07 JUL 19:47Z
    GNU Wget 1.25.0 Heap Buffer Overflow via convert_fname() in url.c
    cvelistv5