CVE-2026-58471: Heap-based Buffer Overflow in gnuwget wget
GNU Wget through 1.25.0, fixed in commit c2640fe, contains a heap buffer overflow vulnerability in the convert_fname() function within src/url.c that allows remote attackers to trigger memory corruption through a server-supplied filename requiring character set conversion. When the output buffer is too small during iconv E2BIG reallocation, the reallocation logic miscalculates the remaining space, leading to a heap buffer overflow that can be exploited via a maliciously crafted server response.
AI Analysis
Technical Summary
CVE-2026-58471 is a heap buffer overflow vulnerability in GNU Wget through version 1.25.0, located in the convert_fname() function in src/url.c. The vulnerability arises when a server supplies a filename that requires character set conversion. During the iconv E2BIG reallocation process, if the output buffer is insufficiently sized, the reallocation logic incorrectly calculates the remaining buffer space, causing a heap overflow. This memory corruption could potentially be triggered remotely by a malicious server response. The vulnerability was addressed in commit c2640fe, which fixes the buffer reallocation logic.
Potential Impact
Successful exploitation can lead to heap memory corruption in the wget process, which may cause crashes or potentially enable further attacks depending on the context. The vulnerability requires a malicious server response with a crafted filename that triggers the flawed character set conversion logic. The CVSS 4.0 vector indicates the attack requires network access with high attack complexity and user interaction, and it has a high impact on availability and low impact on integrity and confidentiality.
Mitigation Recommendations
A fix for this vulnerability is available in the GNU Wget source code as of commit c2640fe. Users and administrators should upgrade to a version of wget that includes this fix, i.e., any version later than 1.25.0. Since this is not a cloud service, remediation depends on applying the updated software. Patch status is not explicitly stated in the provided data, but the commit reference indicates an official fix exists. Until patched, avoid using wget to retrieve files from untrusted servers that might supply malicious filenames requiring character set conversion.
CVE-2026-58471: Heap-based Buffer Overflow in gnuwget wget
Description
GNU Wget through 1.25.0, fixed in commit c2640fe, contains a heap buffer overflow vulnerability in the convert_fname() function within src/url.c that allows remote attackers to trigger memory corruption through a server-supplied filename requiring character set conversion. When the output buffer is too small during iconv E2BIG reallocation, the reallocation logic miscalculates the remaining space, leading to a heap buffer overflow that can be exploited via a maliciously crafted server response.
CVSS v4.0
Score 6.0medium
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-58471 is a heap buffer overflow vulnerability in GNU Wget through version 1.25.0, located in the convert_fname() function in src/url.c. The vulnerability arises when a server supplies a filename that requires character set conversion. During the iconv E2BIG reallocation process, if the output buffer is insufficiently sized, the reallocation logic incorrectly calculates the remaining buffer space, causing a heap overflow. This memory corruption could potentially be triggered remotely by a malicious server response. The vulnerability was addressed in commit c2640fe, which fixes the buffer reallocation logic.
Potential Impact
Successful exploitation can lead to heap memory corruption in the wget process, which may cause crashes or potentially enable further attacks depending on the context. The vulnerability requires a malicious server response with a crafted filename that triggers the flawed character set conversion logic. The CVSS 4.0 vector indicates the attack requires network access with high attack complexity and user interaction, and it has a high impact on availability and low impact on integrity and confidentiality.
Mitigation Recommendations
A fix for this vulnerability is available in the GNU Wget source code as of commit c2640fe. Users and administrators should upgrade to a version of wget that includes this fix, i.e., any version later than 1.25.0. Since this is not a cloud service, remediation depends on applying the updated software. Patch status is not explicitly stated in the provided data, but the commit reference indicates an official fix exists. Until patched, avoid using wget to retrieve files from untrusted servers that might supply malicious filenames requiring character set conversion.
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: 6a4d6193c9d9e3dbe3cbea05
Added to database: 07/07/2026, 20:29:07 UTC
Last enriched: 07/15/2026, 09:55:25 UTC
Last updated: 08/20/2026, 10:52:10 UTC
Views: 83
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.