CVE-2026-58471GNU Wget 1.25.0 Heap Buffer Overflow via convert_fname() in url.c
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.
What to do
Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | wget | Fixed | 1.25.0-2ubuntu4.2 | UBUNTU-CVE-2026-58471 |
| Ubuntu 25.10 | wget | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-58471 | |
| Ubuntu 24.04 | wget | Fixed | 1.21.4-1ubuntu4.3 | UBUNTU-CVE-2026-58471 |
| Ubuntu 22.04 | wget | Fixed | 1.21.2-2ubuntu1.3 | UBUNTU-CVE-2026-58471 |
| Ubuntu 20.04 | wget | Fix pending | 1.20.3-1ubuntu2.1+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-58471 |
| Ubuntu 18.04 | wget | Fix pending | 1.19.4-1ubuntu2.2+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-58471 |
| Debian 14 | wget | Fix pending | DEBIAN-CVE-2026-58471 | |
| Debian 13 | wget | Fix pending | DEBIAN-CVE-2026-58471 | |
| Debian 12 | wget | Fix pending | DEBIAN-CVE-2026-58471 | |
| Red Hat Enterprise Linux 10 | wget | Fixed | 0:1.24.5-8.el10_2 | RHSA-2026:62142 |
| Red Hat Enterprise Linux 9 | wget | Fixed | 0:1.21.1-11.el9_8 | RHSA-2026:62143 |
| Red Hat Enterprise Linux 8 | wget | Fixed | 0:1.19.5-16.el8_10 | RHSA-2026:62144 |
| Red Hat Enterprise Linux 7 | wget | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | wget | Fix pending Affected | ||
| AlmaLinux 10 | wget | Fixed | 1.24.5-8.el10_2 | ALSA-2026:62142 |
| AlmaLinux 9 | wget | Fixed | 1.21.1-11.el9_8 | ALSA-2026:62143 |
| AlmaLinux 8 | wget | Fixed | 1.19.5-16.el8_10 | ALSA-2026:62144 |
| Rocky Linux 10 | wget | Fixed | 0:1.24.5-8.el10_2 | RLSA-2026:62142 |
| Rocky Linux 9 | wget | Fixed | 0:1.21.1-11.el9_8 | RLSA-2026:62143 |
| Rocky Linux 8 | wget | Fixed | 0:1.19.5-16.el8_10 | RLSA-2026:62144 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- gnuwget wget: affected: up to 1.25.0, c2640fe5171c59f87c58dc9fcb195b2d18b010ee not affected
Vendor advisories:
References
- https://gitlab.com/gnuwget/wget/-/commit/c2640fe5171c59f87c58dc9fcb195b2d18b010ee
- https://www.vulncheck.com/advisories/gnu-wget-heap-buffer-overflow-via-convert-fname-in-url-c
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.