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

- Severity: Medium 6.0 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-07-07T19:50:53.967Z
- Modified: 2026-10-25T20:10:00.147Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- gnuwget wget: up to 1.25.0 (not affected: dd692d9cea5335b181d877ae917fe6e75587a812)
- gnu wget: up to 1.25.0

## Every score

- VulnCheck: CVSS:4.0 6.0 Medium `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: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H`

## References

- <https://gitlab.com/gnuwget/wget/-/commit/dd692d9cea5335b181d877ae917fe6e75587a812> (patch)
- <https://www.vulncheck.com/advisories/gnu-wget-heap-buffer-overflow-via-html-attribute-encoding> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2026-58472](https://www.cve.org/CVERecord?id=CVE-2026-58472), CVE Terms of Use, modified 2026-07-14
- NVD: [CVE-2026-58472](https://nvd.nist.gov/vuln/detail/CVE-2026-58472), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-58472 · Whole record: https://cve.day/CVE-2026-58472.json · Rebuilt by cve.day 2026-11-25T22:59:27.318Z
