Skip to main content

GNU Wget EUVDEUVD-2026-42083

| CVE-2026-58471 MEDIUM
Heap-based Buffer Overflow (CWE-122)
2026-07-07 VulnCheck GHSA-vv88-699v-w5rh
6.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker hosts malicious HTTP server
  2. Delivery
    Craft Content-Disposition filename triggering iconv E2BIG
  3. Exploit
    User or script runs wget against attacker URL
  4. Execution
    convert_fname() enters reallocation branch
  5. Persist
    Miscalculated offset causes heap write-past-end
  6. Impact
    Process crash or limited heap corruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target to run GNU Wget version 1.25.0 or earlier compiled with iconv support, and to contact an attacker-controlled server that responds with a filename requiring cross-charset iconv conversion (e.g., a Content-Disposition header containing a filename with multi-byte or non-ASCII characters). The attacker must craft the filename such that its converted form triggers the E2BIG buffer-too-small condition during the reallocation path in convert_fname(). Passive user interaction is required: a user or automated process must initiate the wget download targeting the malicious endpoint. Limiting factors include: (1) AC:H - the attacker must precisely size and encode the server-supplied filename to hit the iconv E2BIG reallocation branch; (2) UI:P - the wget client must be directed at the attacker's server, whether by social engineering or by compromising a trusted source referenced in automated scripts; (3) the target wget binary must have been compiled with iconv support, which is standard in most distribution packages but not universal. There is no requirement for authentication, special Wget configuration flags beyond defaults, or local system access.

Impact

The CVSS 4.0 score of 6.0 (vector AV:N/AC:H/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N) reflects several important risk-limiting factors: high attack complexity (AC:H) because triggering the E2BIG reallocation path requires precise character set conversion conditions, and passive user interaction (UI:P) because a user or automated process must initiate a wget download against an attacker-controlled endpoint. The primary confirmed impact is availability (VA:H - process crash); confidentiality is unaffected (VC:N), and integrity impact is limited (VI:L). No EPSS score was provided in the source data and no KEV listing exists, suggesting this is not currently under widespread exploitation. The real-world priority is moderate: wget is widely deployed, and automated scripts (CI/CD pipelines, container builds, provisioning tooling) that download from external or partially trusted servers are plausibly exploitable without direct user awareness. A discrepancy to note: the CVSS 4.0 vector assigns PR:N, which is consistent with the wget client needing no authentication to reach the attacking server, but the attack inherently requires the user to have chosen to contact that server - a social engineering dependency that AC:H and UI:P partly capture.

Exploit ScenarioDerived

An attacker operates a malicious HTTP server and serves a response with a Content-Disposition filename containing characters sized and encoded to trigger the iconv E2BIG reallocation branch in convert_fname(). When a user or CI/CD pipeline script runs wget against that URL, convert_fname() allocates an output buffer, receives E2BIG from iconv, attempts to reallocate with a miscalculated offset, and overwrites adjacent heap memory - crashing the process or, under favorable heap conditions, achieving limited write primitives. No public proof-of-concept has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 07, 2026

Heap buffer overflow in GNU Wget through 1.25.0 allows network-positioned attackers to corrupt heap memory by serving a maliciously crafted filename that triggers a flawed iconv E2BIG reallocation path in convert_fname() within src/url.c. The miscalculated remaining-space offset during reallocation writes beyond the allocated heap region, producing a high-availability impact (process crash) and limited integrity exposure. No public exploit has been identified at time of analysis and the vulnerability is not listed in CISA KEV; however, the fix is confirmed via upstream commit c2640fe on the official GNU Wget GitLab repository.

RemediationAI

Apply the upstream fix from commit c2640fe5171c59f87c58dc9fcb195b2d18b010ee, available at https://gitlab.com/gnuwget/wget/-/commit/c2640fe5171c59f87c58dc9fcb195b2d18b010ee. Monitor major Linux distribution package repositories (Debian, Ubuntu, RHEL, Alpine, etc.) for updated wget packages incorporating this commit, as a specific patched release version has not been independently confirmed beyond this upstream commit. As an interim compensating control, avoid using wget with --content-disposition against untrusted or externally controlled servers, since that flag causes wget to derive filenames from server-supplied Content-Disposition headers - the precise attack surface. Restricting wget usage in automated scripts to trusted, internally controlled endpoints eliminates attacker-controlled server-filename input and removes the vulnerable code path entirely without side effects on functionality. Wget compiled without iconv support would also be unaffected, but recompiling is rarely practical as a short-term workaround.

Affected VersionsENISA

Wget 0 ≤1.25.0
Wget patch: c2640fe5171c59f87c58dc9fcb195b2d18b010ee

Affected Packages

euvd wget no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

GNU Wget is the affected product, identified by CPE cpe:2.3:a:gnuwget:wget:*:*:*:*:*:*:*:* covering all versions through 1.25.0. The root cause is CWE-122 (Heap-based Buffer Overflow) within the convert_fname() function in src/url.c. This function uses libiconv to translate server-supplied filenames between character sets; when the output buffer is insufficiently sized, iconv returns E2BIG, signaling that the destination buffer must be grown. The reallocation logic designed to handle this case contains an arithmetic error in tracking the remaining available space, causing the subsequent iconv call to write past the end of the reallocated heap buffer. The bug is only reachable when a server-supplied filename requires multi-byte or cross-charset iconv conversion, such as when wget is used with --content-disposition or when the server response triggers automatic filename derivation from a non-ASCII path.

Know when Wget gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.0 MEDIUM
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
vuln.today AI 5.9 MEDIUM

Network vector as server controls the trigger; AC:H for specific iconv E2BIG path; UI:R since user must run wget against the malicious server; no confidentiality impact.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H
Red Hat 5.9 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
High
standard download utility bundled in most Linux distributions
Data Quality
8 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

More in Wget

View all
CVE-2014-4877 CRITICAL POC
9.3 Oct 29

Absolute path traversal vulnerability in GNU Wget before 1.16, when recursion is enabled, allows remote FTP servers to w

CVE-2016-4971 HIGH POC
8.8 Jun 30

GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request from HTTP to a crafted F

CVE-2017-13089 HIGH
8.8 Oct 27

The http.c:skip_short_body() function is called in some circumstances, such as when processing redirects. Rated high sev

CVE-2016-7098 HIGH POC
8.1 Sep 26

Race condition in wget 1.17 and earlier, when used in recursive or mirroring mode to download a single file, might allow

CVE-2018-20483 HIGH POC
7.8 Dec 26

set_file_metadata in xattr.c in GNU Wget before 1.20.1 stores a file's origin URL in the user.xdg.origin.url metadata at

CVE-2017-13090 HIGH
8.8 Oct 27

The retr.c:fd_read_body() function is called when processing OK responses. Rated high severity (CVSS 8.8), this vulnerab

CVE-2018-0494 MEDIUM POC
6.5 May 06

GNU Wget before 1.19.5 is prone to a cookie injection vulnerability in the resp_new function in http.c via a \r\n sequen

CVE-2017-6508 MEDIUM POC
6.1 Mar 07

CRLF injection vulnerability in the url_parse function in url.c in Wget through 1.19.1 allows remote attackers to inject

CVE-2019-5953 CRITICAL
9.8 May 17

Buffer overflow in GNU Wget 1.20.1 and earlier allows remote attackers to cause a denial-of-service (DoS) or may execute

CVE-2024-38428 CRITICAL
9.1 Jun 16

url.c in GNU Wget through 1.24.5 mishandles semicolons in the userinfo subcomponent of a URI, and thus there may be inse

CVE-2026-58469 HIGH
8.7 Jul 07

Denial of service in GNU Wget through 1.25.0 lets a malicious or compromised HTTP(S) server crash the client by serving

CVE-2026-94574 HIGH
7.8 Sep 22

Local cross-user code execution with privilege-escalation potential affects the Windows builds of GNU wget distributed b

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Image SLES15-SP7-Azure-3P Image SLES15-SP7-Azure-Basic Image SLES15-SP7-Azure-Standard Image SLES15-SP7-BYOS-Azure Image SLES15-SP7-BYOS-GCE Image SLES15-SP7-CHOST-BYOS-Aliyun Image SLES15-SP7-CHOST-BYOS-Azure Image SLES15-SP7-CHOST-BYOS-EC2 Image SLES15-SP7-CHOST-BYOS-GCE Image SLES15-SP7-CHOST-BYOS-GDC Image SLES15-SP7-CHOST-BYOS-SAP-CCloud Image SLES15-SP7-EC2 Image SLES15-SP7-EC2-ECS-HVM Image SLES15-SP7-GCE Image SLES15-SP7-HPC-Azure Image SLES15-SP7-HPC-BYOS-Azure Image SLES15-SP7-HPC-BYOS-EC2 Image SLES15-SP7-HPC-BYOS-GCE Image SLES15-SP7-Hardened-BYOS-Azure Image SLES15-SP7-Hardened-BYOS-EC2 Image SLES15-SP7-Hardened-BYOS-GCE Image SLES15-SP7-SAP-Azure Image SLES15-SP7-SAP-Azure-3P Image SLES15-SP7-SAP-BYOS-Azure Image SLES15-SP7-SAP-BYOS-EC2 Image SLES15-SP7-SAP-BYOS-GCE Image SLES15-SP7-SAP-EC2 Image SLES15-SP7-SAP-GCE Image SLES15-SP7-SAP-Hardened-Azure Image SLES15-SP7-SAP-Hardened-BYOS-Azure Image SLES15-SP7-SAP-Hardened-BYOS-EC2 Image SLES15-SP7-SAP-Hardened-BYOS-GCE Image SLES15-SP7-SAP-Hardened-GCE Image SLES15-SP7-SAPCAL-Azure Image SLES15-SP7-SAPCAL-EC2 Image SLES15-SP7-SAPCAL-GCE Affected
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Basesystem 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy