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

Published Jul 7, 2026
·
Updated

GNU Wget through 1.25.0, fixed in commit dd692d9, contains a heap buffer overflow vulnerability in the htmlquotestring() 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 Software

3 affected components
GNU Wget<=1.25.0
GNU Wget<=1.25.0
debian/wget<=1.21-1+deb11u1, <=1.21-1+deb11u2, <=1.21.3-1+deb12u1, <=1.25.0-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GNU Wget to a version that resolves this vulnerability.

    Fixed in commit dd692d9

Event History

Jul 7, 2026
CVE Published
via MITRE·07:50 PM
Data Sourced
via MITRE·07:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 14, 2026
Data Sourced
via Debian·10:32 PM
DescriptionAffected Software
Data Sourced
via Launchpad·10:32 PM
Description
Jul 16, 2026
Data Sourced
via Ubuntu·10:32 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-58472?

CVE-2026-58472 has a medium severity score of 5.9.

2

How do I fix CVE-2026-58472?

To fix CVE-2026-58472, update to GNU Wget version 1.25.1 or higher, as the issue is resolved in commit dd692d9.

3

What is the nature of the vulnerability in CVE-2026-58472?

CVE-2026-58472 is a heap buffer overflow vulnerability that can be triggered by supplying a crafted HTML attribute.

4

Which versions of GNU Wget are affected by CVE-2026-58472?

GNU Wget versions through 1.25.0 are affected by CVE-2026-58472.

5

What are the potential impacts of CVE-2026-58472?

CVE-2026-58472 can lead to memory corruption, which may allow attackers to execute arbitrary code.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203