CVE-2026-58472: GNU Wget 1.25.0 Heap Buffer Overflow via HTML Attribute Encoding
GNU Wget through 1.25.0, fixed in commit dd692d9, contains a heap buffer overflow vulnerability in the htmlquotestring() 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
GNU Wgetto a version that resolves this vulnerability.Fixed in commit dd692d9
Event History
Frequently Asked Questions
What is the severity of CVE-2026-58472?
CVE-2026-58472 has a medium severity score of 5.9.
How do I fix CVE-2026-58472?
To fix CVE-2026-58472, update to GNU Wget version 1.25.1 or higher, as the issue is resolved in commit dd692d9.
What is the nature of the vulnerability in CVE-2026-58472?
CVE-2026-58472 is a heap buffer overflow vulnerability that can be triggered by supplying a crafted HTML attribute.
Which versions of GNU Wget are affected by CVE-2026-58472?
GNU Wget versions through 1.25.0 are affected by CVE-2026-58472.
What are the potential impacts of CVE-2026-58472?
CVE-2026-58472 can lead to memory corruption, which may allow attackers to execute arbitrary code.