cve.bz

CVE-2026-58471 gnu wget: Heap-based Buffer Overflow

6.0 mediumEPSS 0.4%Fix available

Medium (6.0) in gnu wget. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

6.0 medium
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

7.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 34th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-58471 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-58471?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-58471?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-58471 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-58471

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-58471](https://cve.bz/cve/badge/CVE-2026-58471.svg)](https://cve.bz/cve/CVE-2026-58471)

HTML:

<a href="https://cve.bz/cve/CVE-2026-58471"><img src="https://cve.bz/cve/badge/CVE-2026-58471.svg" alt="CVE-2026-58471"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
gnuwget wgetthrough 1.25.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14wgetno fix listedDEBIAN-CVE-2026-58471
Ubuntu22.04:LTSwget1.21.2-2ubuntu1.3UBUNTU-CVE-2026-58471 USN-8543-1
Ubuntu24.04:LTSwget1.21.4-1ubuntu4.3UBUNTU-CVE-2026-58471 USN-8543-1
Ubuntu25.10wgetno fix listedUBUNTU-CVE-2026-58471
Ubuntu26.04:LTSwget1.25.0-2ubuntu4.2UBUNTU-CVE-2026-58471 USN-8543-1
UbuntuPro:14.04:LTSwget1.15-1ubuntu1.14.04.5+esm2USN-8543-1
UbuntuPro:16.04:LTSwget1.17.1-1ubuntu1.5+esm3USN-8543-1
UbuntuPro:18.04:LTSwget1.19.4-1ubuntu2.2+esm3UBUNTU-CVE-2026-58471 USN-8543-1
UbuntuPro:20.04:LTSwget1.20.3-1ubuntu2.1+esm2UBUNTU-CVE-2026-58471 USN-8543-1
Red Hatenterprise_linux:8::appstreamwget, wget-debuginfo, wget-debugsource0:1.19.5-16.el8_10RHSA-2026:62144
Red Hatenterprise_linux:9::appstreamwget, wget-debuginfo, wget-debugsource0:1.21.1-11.el9_8RHSA-2026:62143
Red Hatenterprise_linux:10.2wget, wget-debuginfo, wget-debugsource0:1.24.5-8.el10_2RHSA-2026:62142
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 6 morewget1.20.3-150000.3.34.1SUSE-SU-2026:3206-1
SUSELinux Enterprise Module for Basesystem 15 SP7wget1.24.5-150700.3.3.1SUSE-SU-2026:3148-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0wget1.25.0-160000.3.1SUSE-SU-2026:23326-1
SUSELinux Micro 6.0wget1.24.5-3.1SUSE-SU-2026:23053-1
SUSELinux Micro 6.1wget1.24.5-slfo.1.1_4.1SUSE-SU-2026:23163-1
SUSELinux Micro 6.2wget1.25.0-160000.3.1SUSE-SU-2026:23297-1
openSUSELeap 16.0wget1.25.0-160000.3.1openSUSE-SU-2026:21665-1
openSUSETumbleweedwget1.25.0-3.1openSUSE-SU-2026:11252-1
AlmaLinux8wget1.19.5-16.el8_10ALSA-2026:62144
AlmaLinux9wget1.21.1-11.el9_8ALSA-2026:62143
AlmaLinux10wget1.24.5-8.el10_2ALSA-2026:62142
Rocky Linux8wget0:1.19.5-16.el8_10RLSA-2026:62144
Rocky Linux9wget0:1.21.1-11.el9_8RLSA-2026:62143
Rocky Linux10wget0:1.24.5-8.el10_2RLSA-2026:62142
Alpaquita23wget1.21.4-r2BELL-CVE-2026-58471
Alpaquita25, streamwget1.25.0-r2BELL-CVE-2026-58471

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Moderate: A heap buffer overflow in GNU Wget, affecting Red Hat Enterprise Linux and other products, can be triggered by a remote attacker. This flaw occurs when `wget` processes a specially crafted server-supplied filename that requires character set conversion, leading to memory corruption. Successful exploitation requires user interaction with a malicious server and could result in a denial of service or potentially other impacts.

Red Hat's mitigation

To mitigate this issue, always use the -O (or --output-document) flag in your scripts to explicitly define the local filename. This forces wget to ignore the server's provided filename, completely bypassing the vulnerable code path.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10wget-0:1.24.5-8.el10_2Fixed 2026-09-01RHSA-2026:62142
Red Hat Enterprise Linux 8wget-0:1.19.5-16.el8_10Fixed 2026-09-01RHSA-2026:62144
Red Hat Enterprise Linux 9wget-0:1.21.1-11.el9_8Fixed 2026-09-01RHSA-2026:62143
Red Hat Enterprise Linux 6wgetAffected
Red Hat Enterprise Linux 7wgetAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-58471.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON