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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | wget | 1.24.5-8.el10_2 | ALSA-2026:62142 |
| AlmaLinux:8 | wget | 1.19.5-16.el8_10 | ALSA-2026:62144 |
| AlmaLinux:9 | wget | 1.21.1-11.el9_8 | ALSA-2026:62143 |
| Debian:12 | wget | no fix listed | DEBIAN-CVE-2026-58472 |
| Debian:13 | wget | no fix listed | DEBIAN-CVE-2026-58472 |
| Debian:14 | wget | no fix listed | DEBIAN-CVE-2026-58472 |
| Rocky Linux:10 | wget | 0:1.24.5-8.el10_2 | RLSA-2026:62142 |
| Rocky Linux:8 | wget | 0:1.19.5-16.el8_10 | RLSA-2026:62144 |
| Rocky Linux:9 | wget | 0:1.21.1-11.el9_8 | RLSA-2026:62143 |
| Ubuntu:22.04:LTS | wget | 1.21.2-2ubuntu1.3 | UBUNTU-CVE-2026-58472 |
| Ubuntu:22.04:LTS | wget | 1.21.2-2ubuntu1.3 | USN-8543-1 |
| Ubuntu:24.04:LTS | wget | 1.21.4-1ubuntu4.3 | USN-8543-1 |
| Ubuntu:24.04:LTS | wget | 1.21.4-1ubuntu4.3 | UBUNTU-CVE-2026-58472 |
| Ubuntu:25.10 | wget | no fix listed | UBUNTU-CVE-2026-58472 |
| Ubuntu:26.04:LTS | wget | 1.25.0-2ubuntu4.2 | USN-8543-1 |
| Ubuntu:26.04:LTS | wget | 1.25.0-2ubuntu4.2 | UBUNTU-CVE-2026-58472 |
Affected products (as reported)
Weakness: CWE-190 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H
References
- Fix Commit patch
- https://www.vulncheck.com/advisories/gnu-wget-heap-buffer-overflow-via-html-attribute-encoding third-party-advisory