Buffer overflow in GNU Wget
CVE-2026-58471
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.
Vulnerability class: Buffer Overflow
EPSS: 0.002 (12.9th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H.
Affected products
- Gnu Wget
- Gnuwget Wget — versions 0, c2640fe5171c59f87c58dc9fcb195b2d18b010ee
Weakness classification (CWE)
References
- disclosure@vulncheck.com (Patch, patch)
- disclosure@vulncheck.com (Patch, Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2026-58471?
- CVE-2026-58471 is a medium-severity vulnerability in GNU Wget, classified under Heap-based Buffer Overflow. CVSS score: 5.9/10. Published 2026-07-07.
- How severe is CVE-2026-58471?
- Medium severity. CVSS v3 base score is 5.9 out of 10.