CVE-2026-58471
JSON

6.0medium

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

Severity
6.0medium CVSS:4.0 by VulnCheck
Exploit likelihood
0.32% (higher than 26% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
gnuwget wgetup to 1.25.0
Not affected: c2640fe5171c59f87c58dc9fcb195b2d18b010ee
CVE List
gnu wgetup to 1.25.0NVD

All scores

VulnCheck6.0medium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
VulnCheck5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H
NVD7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H

Classification

CWE-122

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

GNU Wget hasta 1.25.0, corregido en el commit c2640fe, contiene una vulnerabilidad de desbordamiento de búfer de pila en la función convert_fname() dentro de src/url.c que permite a atacantes remotos desencadenar corrupción de memoria a través de un nombre de archivo proporcionado por el servidor que requiere conversión de conjunto de caracteres. Cuando el búfer de salida es demasiado pequeño durante la reasignación iconv E2BIG, la lógica de reasignación calcula erróneamente el espacio restante, lo que lleva a un desbordamiento de búfer de pila que puede ser explotado a través de una respuesta de servidor creada maliciosamente.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-58471 changed 2026-07-14CVE Terms of Use
NVDCVE-2026-58471 changed 2026-10-25Public domain