{"id":"CVE-2026-58472","summary":"GNU Wget 1.25.0 Heap Buffer Overflow via HTML Attribute Encoding","details":"GNU Wget through 1.25.0, fixed in commit dd692d9, contains a heap buffer overflow vulnerability in the html_quote_string() function in src/convert.c that allows a remote attacker to trigger memory corruption by supplying a crafted HTML attribute with a large number of characters requiring entity encoding. A server-supplied HTML attribute causes a signed integer counter to overflow during output size accumulation, resulting in an undersized heap allocation and subsequent heap buffer overflow during the copy phase.","modified":"2026-07-11T09:29:25.538675106Z","published":"2026-07-07T19:50:53.967Z","related":["openSUSE-SU-2026:11252-1"],"database_specific":{"cwe_ids":["CWE-190"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58472.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58472.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58472"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/gnu-wget-heap-buffer-overflow-via-html-attribute-encoding"},{"type":"FIX","url":"https://gitlab.com/gnuwget/wget/-/commit/dd692d9cea5335b181d877ae917fe6e75587a812"},{"type":"PACKAGE","url":"https://gitlab.com/gnuwget/wget"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.com/gnuwget/wget","events":[{"introduced":"0"},{"fixed":"dd692d9cea5335b181d877ae917fe6e75587a812"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:gnu:wget:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"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-58472.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"}]}