CVE-2026-58472 GNU Wget 1.25.0 Heap Buffer Overflow via HTML Attribute Encoding
A remote attacker can trigger a heap buffer overflow in GNU Wget via crafted HTML attributes, potentially leading to code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-58472?
CVE-2026-58472 is a medium-severity vulnerability in gnuwget wget, published on 7 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-190
Which versions are affected by CVE-2026-58472?
It affects 1 product.
Products include Gnu Wget.
How do I fix CVE-2026-58472?
Apply the vendor's patch.
Is CVE-2026-58472 being exploited?
There is no known exploitation of CVE-2026-58472 in the wild and no public exploit code.
Other vulnerabilities in gnuwget wget
Sources
Also known as CLSA-2026-1784107647, DEBIAN-CVE-2026-58472, ECHO-3772-079f-c642, GHSA-332r-8pmf-8m9p, JLSEC-2026-1161, ROOT-OS-ALPINE-322-CVE-2026-58472 and 5 more.