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.
1.21.2-2ubuntu1.31.21.4-1ubuntu4.31.24.5-2ubuntu11.25.0-2ubuntu11.25.0-2ubuntu21.25.0-2ubuntu31.25.0-2ubuntu4.21.19.4-1ubuntu2.2+esm31.20.3-1ubuntu2.1+esm2Exploitability
AV:NAC:HAT:NPR:NUI:PVulnerable System
VC:NVI:LVA:HSubsequent System
SC:NSI:NSA:NCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N