CVE-2026-58471
GNU Wget 1.25.0 Heap Buffer Overflow via convert_fname() in url.c
Reported by vulncheck · Published July 7, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| wget-debugsource | errata.rockylinux.org | 1.24.5-8.el10, 1.21.1-11.el9 |
| wget-debuginfo | errata.rockylinux.org | 1.24.5-8.el10, 1.21.1-11.el9 |
| wget | errata.rockylinux.org | 1.24.5-8.el10, 1.21.1-11.el9 |
| wget | gnu | 1.25.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| gnuwget | wget | 0, c2640fe5171c59f87c58dc9fcb195b2d18b010ee |
| gnu | wget | 0 |
| chainguard | wget | 0 |
| wolfi | wget | 0 |
| gnuwget | wget | *, 0 |
Timeline
- Jul 7, 2026 CVE Published
- Jul 8, 2026 EPSS Score (30 in total, the first dated here)
- Jul 8, 2026 Coalition ESS Score
- Jul 9, 2026 Security Advisory (5 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (7 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-58471
vulnetix vdb fixes CVE-2026-58471
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-58471/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- Fix Commit patch
- third-party-advisory