CVE-2026-58472: Integer Overflow or Wraparound in gnuwget wget
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.
AI Analysis
Technical Summary
CVE-2026-58472 is a heap buffer overflow vulnerability in GNU Wget through version 1.25.0, specifically in the html_quote_string() function within src/convert.c. A remote attacker can supply a malicious HTML attribute containing a large number of characters requiring entity encoding, causing a signed integer counter to overflow during output size calculation. This results in an undersized heap allocation and a buffer overflow during the copy phase, potentially leading to memory corruption. The issue is resolved in a commit identified as dd692d9, which fixes the integer overflow and buffer allocation logic.
Potential Impact
Successful exploitation can cause heap memory corruption in the affected Wget process. This may lead to application crashes or potentially allow an attacker to execute arbitrary code or cause denial of service. The vulnerability requires a crafted HTML attribute from a remote server and has a medium severity rating with a CVSS 4.0 score of 6.0. No known exploits are reported in the wild at this time.
Mitigation Recommendations
A fix for this vulnerability is available in the commit dd692d9, which addresses the integer overflow and buffer allocation issues. Users should upgrade to a version of GNU Wget that includes this fix (versions later than 1.25.0). Since no official patch version number is provided, users should monitor the vendor's repository or official channels for the patched release. Until then, avoid using vulnerable versions to retrieve untrusted HTML content that may trigger this issue.
CVE-2026-58472: Integer Overflow or Wraparound in gnuwget wget
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 v4.0
Score 6.0medium
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-58472 is a heap buffer overflow vulnerability in GNU Wget through version 1.25.0, specifically in the html_quote_string() function within src/convert.c. A remote attacker can supply a malicious HTML attribute containing a large number of characters requiring entity encoding, causing a signed integer counter to overflow during output size calculation. This results in an undersized heap allocation and a buffer overflow during the copy phase, potentially leading to memory corruption. The issue is resolved in a commit identified as dd692d9, which fixes the integer overflow and buffer allocation logic.
Potential Impact
Successful exploitation can cause heap memory corruption in the affected Wget process. This may lead to application crashes or potentially allow an attacker to execute arbitrary code or cause denial of service. The vulnerability requires a crafted HTML attribute from a remote server and has a medium severity rating with a CVSS 4.0 score of 6.0. No known exploits are reported in the wild at this time.
Mitigation Recommendations
A fix for this vulnerability is available in the commit dd692d9, which addresses the integer overflow and buffer allocation issues. Users should upgrade to a version of GNU Wget that includes this fix (versions later than 1.25.0). Since no official patch version number is provided, users should monitor the vendor's repository or official channels for the patched release. Until then, avoid using vulnerable versions to retrieve untrusted HTML content that may trigger this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-30T20:20:33.790Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4d6193c9d9e3dbe3cbea09
Added to database: 07/07/2026, 20:29:07 UTC
Last enriched: 07/15/2026, 09:55:39 UTC
Last updated: 08/20/2026, 22:52:13 UTC
Views: 85
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.