CVE-2026-58472
Analyzed Analyzed - Analysis Complete

Heap Buffer Overflow in GNU Wget

Vulnerability report for CVE-2026-58472, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-07

Last updated on: 2026-07-09

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-07
Last Modified
2026-07-09
Generated
2026-07-15
AI Q&A
2026-07-08
EPSS Evaluated
2026-07-14
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
gnu wget to 1.25.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-190 The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Compliance Impact

The provided information does not specify any direct impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Executive Summary

This vulnerability exists in GNU Wget through version 1.25.0 in the html_quote_string() function located in src/convert.c. It is a heap buffer overflow caused when a remote attacker supplies a specially crafted HTML attribute containing a large number of characters that require entity encoding.

The issue arises because a signed integer counter overflows during the calculation of the output size, leading to an undersized heap allocation. When the program copies data into this undersized buffer, it causes a heap buffer overflow, potentially corrupting memory.

Impact Analysis

This vulnerability can lead to memory corruption due to the heap buffer overflow. Such memory corruption can cause the program to crash or behave unpredictably.

In some cases, attackers might exploit this to execute arbitrary code or cause denial of service, depending on the context in which GNU Wget is used and the environment it runs in.

Detection Guidance

This vulnerability is triggered by a remote attacker supplying a crafted HTML attribute with a large number of characters requiring entity encoding to GNU Wget version 1.25.0 or earlier.

Detection on your network or system would involve monitoring for usage of vulnerable GNU Wget versions and analyzing network traffic for suspicious HTML attributes with excessive entity-encoded characters.

Since the vulnerability is in the html_quote_string() function of GNU Wget, you can check the version of wget installed on your system with the command:

  • wget --version

To detect potential exploitation attempts, you could monitor network traffic for HTTP responses containing unusually large or crafted HTML attributes that might trigger the overflow. Tools like Wireshark or network intrusion detection systems (NIDS) with custom rules could be used.

However, no specific detection commands or signatures are provided in the available resources.

Mitigation Strategies

The immediate mitigation step is to upgrade GNU Wget to a version that includes the fix for this vulnerability, which was addressed in commit dd692d9.

If upgrading is not immediately possible, avoid using vulnerable versions of GNU Wget to fetch or process untrusted HTML content that could contain crafted attributes triggering the heap buffer overflow.

Additionally, consider applying any patches or updates provided by your operating system or distribution that incorporate the fix.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-58472. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart