Heap-based Buffer Overflow Affecting wget package, versions <1.25.0-r15


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.32% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-WGET-18489520
  • published1 Aug 2026
  • disclosed7 Jul 2026

Introduced: 7 Jul 2026

CVE-2026-58471  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade Chainguard wget to version 1.25.0-r15 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream wget package and not the wget package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1