Heap Buffer Overflow in GNU Wget Affects Memory Handling
CVE-2026-58472

6MEDIUM

Key Information:

Vendor

Gnuwget

Status
Vendor
CVE Published:
7 July 2026

What is CVE-2026-58472?

GNU Wget, up to version 1.25.0, contains a heap buffer overflow vulnerability within the html_quote_string() function located in src/convert.c. An attacker can exploit this flaw by sending a specially crafted HTML attribute with an excessive character count that necessitates entity encoding. The exploitation process involves triggering a signed integer counter overflow during the size accumulation phase, which leads to an inadequate heap allocation. This misallocation can result in a heap buffer overflow in the subsequent memory copy operation, thereby allowing attackers to corrupt memory and potentially execute arbitrary code.

Affected Version(s)

wget 0 <= 1.25.0

wget 0 <= 1.25.0

wget dd692d9cea5335b181d877ae917fe6e75587a812

References

CVSS V4

Score:
6
Severity:
MEDIUM
Confidentiality:
None
Integrity:
Low
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Tristan Madani
.