GNU Wget through 1.25.0, fixed in commit dd692d9, contains a heap buffer overflow vulnerability in the htmlquotestring() 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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-190"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58472.json"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "1.25.0"
}
],
"cpe": "cpe:2.3:a:gnu:wget:*:*:*:*:*:*:*:*",
"source": [
"CPE_RANGE",
"REFERENCES"
]
}[
{
"signature_version": "v1",
"deprecated": false,
"digest": {
"line_hashes": [
"199182357809529623688222713766080133238",
"135212105797410110083668158492137451927",
"278823367891411785948700602687338115408",
"222588612859478639981791596303316826076",
"255870176975768309625979113284697718472",
"201929387705719422185455098915189410111",
"38570025885954457775063338027420572944",
"179250787530478780473293467226234222876",
"111561696374708401675658642401381706952",
"324247327998281272902983770223258545732",
"215847536091761988034876366428378873964",
"257548772929790741928583443619198148197",
"298513403085199463986501409209355700696",
"137207773316618270851453856926200960659",
"323765802171222299116629004769293798484",
"22625333874938592454494960384024649822",
"51167852704852622884562213243626484377",
"305816076677486035627311906503048594941",
"275549255149626703415380327012067846029",
"80695035497579884336848661410450230691"
],
"threshold": 0.9
},
"target": {
"file": "src/convert.c"
},
"id": "CVE-2026-58472-80d2d4fc",
"source": "https://gitlab.com/gnuwget/wget@dd692d9cea5335b181d877ae917fe6e75587a812",
"signature_type": "Line"
},
{
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "html_quote_string",
"file": "src/convert.c"
},
"digest": {
"function_hash": "266493759714671336150758635811033650311",
"length": 945.0
},
"id": "CVE-2026-58472-c3a1b5d2",
"source": "https://gitlab.com/gnuwget/wget@dd692d9cea5335b181d877ae917fe6e75587a812",
"signature_type": "Function"
}
]
"2026-07-15T14:03:05Z"
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-58472.json"