Buffer overflow in GNU Wget
CVE-2026-58471
- CVSS v3
- 5.9 Medium
- Public exploits
- None known
- EPSS
- 0.004 · 33.9th percentile
- Published
- 2026-07-07
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
Published · last modified .
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.
- Attack Vector
- Network
AV:N - Attack Complexity
- High
AC:H - Privileges Required
- None
PR:N - User Interaction
- Required
UI:R - Scope
- Unchanged
S:U - Confidentiality
- None
C:N - Integrity
- Low
I:L - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.004, 33.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- GNU Wget
- Gnuwget Wget — versions 0, c2640fe5171c59f87c58dc9fcb195b2d18b010ee
Weakness classification (CWE)
References
- Fix Commit (Patch, patch)
- www.vulncheck.com/advisories/gnu-wget-heap-buffer-overflow-via-convert-fname-in… (Patch, Third Party Advisory, third-party-advisory)