CVE-2026-58471: GNU Wget 1.25.0 Heap Buffer Overflow via convert_fname() in url.c

Published Jul 7, 2026
·
Updated

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

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 1.25.0Patch c2640fe
  2. Compensating control

    If you cannot immediately update, mitigate by preventing the vulnerable GNU Wget convert_fname() path from processing server-supplied filenames requiring character set conversion (e.g., avoid downloads that trigger charset conversion, or restrict/validate the filenames in a proxy/wrapper before invoking Wget).

Event History

Jul 7, 2026
CVE Published
via MITRE·07:47 PM
Data Sourced
via MITRE·07:47 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 14, 2026
Data Sourced
via Launchpad·10:32 PM
Description
Data Sourced
via Debian·10:32 PM
DescriptionAffected Software
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-58471?

The severity of CVE-2026-58471 is medium with a score of 5.9.

2

How do I fix CVE-2026-58471?

To fix CVE-2026-58471, upgrade GNU Wget to version 1.25.1 or later, which includes the necessary security patch.

3

What is the impact of CVE-2026-58471?

CVE-2026-58471 allows remote attackers to exploit a heap buffer overflow in GNU Wget, leading to potential memory corruption.

4

Which function is affected by CVE-2026-58471?

The convert_fname() function within src/url.c is affected by CVE-2026-58471.

5

In which versions of GNU Wget does CVE-2026-58471 exist?

CVE-2026-58471 exists in GNU Wget versions up to and including 1.25.0.

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