Vulnerability · Published Jul 7, 2026 · Assigned by VulnCheck

CVE-2026-58472GNU Wget 1.25.0 Heap Buffer Overflow via HTML Attribute Encoding

Medium 5.9

In plain English

A medium-severity integer overflow in wget from gnuwget. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.4%top 66.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10wget1.24.5-8.el10_2ALSA-2026:62142
AlmaLinux:8wget1.19.5-16.el8_10ALSA-2026:62144
AlmaLinux:9wget1.21.1-11.el9_8ALSA-2026:62143
Debian:12wgetno fix listedDEBIAN-CVE-2026-58472
Debian:13wgetno fix listedDEBIAN-CVE-2026-58472
Debian:14wgetno fix listedDEBIAN-CVE-2026-58472
Rocky Linux:10wget0:1.24.5-8.el10_2RLSA-2026:62142
Rocky Linux:8wget0:1.19.5-16.el8_10RLSA-2026:62144
Rocky Linux:9wget0:1.21.1-11.el9_8RLSA-2026:62143
Ubuntu:22.04:LTSwget1.21.2-2ubuntu1.3UBUNTU-CVE-2026-58472
Ubuntu:22.04:LTSwget1.21.2-2ubuntu1.3USN-8543-1
Ubuntu:24.04:LTSwget1.21.4-1ubuntu4.3USN-8543-1
Ubuntu:24.04:LTSwget1.21.4-1ubuntu4.3UBUNTU-CVE-2026-58472
Ubuntu:25.10wgetno fix listedUBUNTU-CVE-2026-58472
Ubuntu:26.04:LTSwget1.25.0-2ubuntu4.2USN-8543-1
Ubuntu:26.04:LTSwget1.25.0-2ubuntu4.2UBUNTU-CVE-2026-58472

Affected products (as reported)

VendorProductVersions
gnuwget wget 0 – through 1.25.0

Weakness: CWE-190 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H

References