REDHAT-BUG-2497850: Buffer Overflow

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

1 affected component
GNU Wget<=1.25.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade GNU Wget to a version that resolves this vulnerability.

    Patch c2640fe
  2. Operational

    Rebuild/redeploy GNU Wget after applying commit c2640fe to remediate the heap buffer overflow in convert_fname() (src/url.c) triggered by server-supplied filenames and iconv E2BIG reallocation miscalculation.

Event History

Jul 7, 2026
Data Sourced
via Red Hat·09:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What attacker capability is required to trigger this issue?

An attacker needs to provide a malicious server response containing a filename that requires character set conversion. The crafted filename must cause the iconv conversion path to encounter an E2BIG buffer reallocation condition.

2

Which GNU Wget versions are affected?

GNU Wget through version 1.25.0 is affected. The issue is fixed in commit c2640fe.

3

Which usage scenario is exposed?

Systems using affected GNU Wget versions to interact with attacker-controlled or untrusted servers are exposed when those servers can supply filenames requiring character set conversion.

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