{"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-24T17:23:07.427489281Z","published":"2026-07-07T19:47:47.662Z","related":["SUSE-SU-2026:3148-1","SUSE-SU-2026:3206-1","openSUSE-SU-2026:11252-1"],"database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-122"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58471.json"},"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":"c2640fe5171c59f87c58dc9fcb195b2d18b010ee"}],"database_specific":{"cpe":"cpe:2.3:a:gnu:wget:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"1.25.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"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/osv-test-cve-osv-conversion/osv-output/CVE-2026-58471.json","vanir_signatures_modified":"2026-07-15T14:03:05Z","vanir_signatures":[{"signature_type":"Line","signature_version":"v1","source":"https://gitlab.com/gnuwget/wget@c2640fe5171c59f87c58dc9fcb195b2d18b010ee","target":{"file":"src/url.c"},"deprecated":false,"digest":{"line_hashes":["294500228288664263625566711264141674268","199220650042591654369529381888353120125","95353833620347814771463094521014642397","242719895248178841474821771296533257917","48869115540669839174357667352734493065","278072853899392985474035146633435263733","261827622472641176285802154208345937009","117736049488357435672958566244550401902","260366348520192133835145400447701741387","182083678579101949302146237586105708061","178166415751543498109291477949194743683","204343209596003018662545539021124742601","324778690218820308708773285349555998474","50988566751615329397715604544818724913","306820567038559673937729912774310426983","282215887192772135856808672275956114641","141963259781630858488931853108443860237","239498595861488396254100329307580822270","192625165309822972587069235614994581664"],"threshold":0.9},"id":"CVE-2026-58471-691fc610"},{"id":"CVE-2026-58471-b11efdd3","signature_type":"Function","signature_version":"v1","source":"https://gitlab.com/gnuwget/wget@c2640fe5171c59f87c58dc9fcb195b2d18b010ee","target":{"file":"src/url.c","function":"convert_fname"},"deprecated":false,"digest":{"function_hash":"65550410819091286333420077388895906521","length":1649}}]}}],"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"}]}