6.0medium
GNU Wget 1.25.0 Heap Buffer Overflow via HTML Attribute Encoding
- Severity
- 6.0medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.39% (higher than 25% of CVEs)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
GNU Wget through 1.25.0, fixed in commit dd692d9, contains a heap buffer overflow vulnerability in the html_quote_string() function in src/convert.c that allows a remote attacker to trigger memory corruption by supplying a crafted HTML attribute with a large number of characters requiring entity encoding. A server-supplied HTML attribute causes a signed integer counter to overflow during output size accumulation, resulting in an undersized heap allocation and subsequent heap buffer overflow during the copy phase.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gnuwget wget | up to 1.25.0 Not affected: dd692d9cea5335b181d877ae917fe6e75587a812 | CVE List |
| gnu wget | up to 1.25.0 | NVD |
All scores
| VulnCheck | 6.0medium CVSS:4.0 | 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 | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H |
| NVD | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H |
Classification
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 dd692d9, contains a heap buffer overflow vulnerability in the html_quote_string() function in src/convert.c that allows a remote attacker to trigger memory corruption by supplying a crafted HTML attribute with a large number of characters requiring entity encoding. A server-supplied HTML attribute causes a signed integer counter to overflow during output size accumulation, resulting in an undersized heap allocation and subsequent heap buffer overflow during the copy phase.
NVD (es)
GNU Wget hasta 1.25.0, corregido en el commit dd692d9, contiene una vulnerabilidad de desbordamiento de búfer de pila en la función html_quote_string() en src/convert.c que permite a un atacante remoto activar la corrupción de memoria al proporcionar un atributo HTML manipulado con un gran número de caracteres que requieren codificación de entidades. Un atributo HTML proporcionado por el servidor provoca que un contador de enteros con signo se desborde durante la acumulación del tamaño de salida, lo que resulta en una asignación de pila de tamaño insuficiente y un desbordamiento de búfer de pila posterior durante la fase de copia.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-58472 changed 2026-07-14 | CVE Terms of Use |
| NVD | CVE-2026-58472 changed 2026-10-25 | Public domain |