{"id":"CVE-2026-58471","summary":"GNU Wget 1.25.0 Heap Buffer Overflow via convert_fname() in url.c","details":"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.","modified":"2026-07-10T03:53:31.081813872Z","published":"2026-07-07T19:47:47.662Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58471.json","cwe_ids":["CWE-122"],"cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58471.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58471"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/gnu-wget-heap-buffer-overflow-via-convert-fname-in-url-c"},{"type":"FIX","url":"https://gitlab.com/gnuwget/wget/-/commit/c2640fe5171c59f87c58dc9fcb195b2d18b010ee"},{"type":"PACKAGE","url":"https://gitlab.com/gnuwget/wget"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.com/gnuwget/wget","events":[{"introduced":"0"},{"fixed":"abb989138731341e5cfd285d272b24afb60fd1a9"},{"fixed":"c2640fe5171c59f87c58dc9fcb195b2d18b010ee"}],"database_specific":{"source":["DESCRIPTION","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"1.25.0"}]}}],"versions":["v1.25.0","v1.24.5","v1.21.4","v1.21.3","v1.21.2","v1.21.1","v1.21","v1.20.3","v1.20.2","v1.20.1","v1.20","v1.19.5","v1.19.4","v1.19.3","v1.19.2","v1.19.1","v1.19","v1.18","v1.17.1","v1.17","v1.16.3","v1.16.2","v1.16.1","v1.16","v1.15","v1.14","v1.13.4","v1.13.3","v1.13.2","v1.13.1","v1.13","v1.12"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58471.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}