REDHAT-BUG-2497838: Medium severity GNU Wget vulnerability

Published Jul 7, 2026
·
Updated

GNU Wget through 1.25.0, fixed in commit 37a40fc, contains a heap buffer underread vulnerability in the cleanmetalinkstring() function within src/metalink.c that allows a malicious server to trigger memory corruption by serving a Metalink document containing a whitespace-only URL. Attackers can cause the function to decrement a pointer past the start of the buffer when processing an all-whitespace Metalink URL, potentially leading to abnormal program behavior.

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 37a40fc

Event History

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

Frequently Asked Questions

1

What attacker access is required to trigger this issue?

An attacker needs to control or impersonate a server that provides a Metalink document to Wget. The crafted document must contain a URL field made entirely of whitespace.

2

Which Wget installations are in scope?

GNU Wget through version 1.25.0 is affected according to the available information. The issue is fixed by commit 37a40fc.

3

What is the likely impact of successful exploitation?

Processing the malicious Metalink URL can make clean_metalink_string() decrement a pointer before the beginning of its buffer, causing a heap buffer underread. This may result in memory corruption and abnormal program behavior.

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