CVE-2026-58469

GNU Wget 1.25.0 Heap Buffer Underread via Metalink URL Parsing

Published Jul 7, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
GNU Wget through 1.25.0, fixed in commit 37a40fc, contains a heap buffer underread vulnerability in the clean_metalink_string() 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.

Analysis

AI-generated

Technical impact

GNU Wget versions up to and including 1.25.0 contain a heap buffer underread flaw in the clean_metalink_string() function that processes Metalink URL lists. When a Metalink document includes a URL composed solely of whitespace characters, the function subtracts one from the pointer that references the buffer, allowing code to read past the buffer's start. This improper read can lead to abnormal program behavior, as described in the advisory. The weakness is classified as CWE‑125.

Affected Systems

All installations that use the GNU Wget product, up to version 1.25.0, are impacted. Versions that incorporate commit 37a40fc or later are no longer vulnerable.

Risk and Exploitability

The CVSS score of 8.7 indicates a significant potential impact. The EPSS score, being below 1 %, suggests that exploitation is currently unlikely. The flaw is not listed in CISA’s Known Exploited Vulnerabilities catalog. Based on the description, it is inferred that an attacker can exploit the vulnerability remotely by hosting a malicious Metalink document containing a whitespace‑only URL; the victim’s Wget client merely needs to fetch the file over the network to trigger the bug. The combination of high severity and low exploitation probability points to a moderate overall risk for affected systems that regularly retrieve Metalink files.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade GNU Wget to any release that incorporates commit 37a40fc; for example, move to a newer major version or apply the patch directly.
  • Disable Metalink processing by running Wget with the --no-metalink option or by setting metalink=off in the .wgetrc configuration file to avoid the vulnerable code path.
  • Validate Metalink documents before processing, ensuring that all URLs contain non‑whitespace characters and originate from trusted sources; reject any document that includes a whitespace‑only URL to mitigate the CWE‑125 weakness.

Generated by OpenCVE AI on August 1, 2026 at 17:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8543-1 Wget vulnerabilities
History
Type Values Removed Values Added
First Time appeared Gnu
Gnu wget
CPEs cpe:2.3:a:gnu:wget:*:*:*:*:*:*:*:*
Vendors & Products Gnu
Gnu wget
Type Values Removed Values Added
First Time appeared Wget
Wget wget
Vendors & Products Wget
Wget wget
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description GNU Wget through 1.25.0, fixed in commit 37a40fc, contains a heap buffer underread vulnerability in the clean_metalink_string() 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.
Title GNU Wget 1.25.0 Heap Buffer Underread via Metalink URL Parsing
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 14, 2026, 10:03 PM
Reserved
Jun 30, 2026, 8:20 PM
Status
Analyzed
Published
Jul 7, 2026, 9:17 PM
Modified
Oct 25, 2026, 8:10 PM
Severity
Moderate
Public date
Jul 7, 2026, 7:43 PM