Skip to main content

GNU Wget CVE-2026-58472

| EUVDEUVD-2026-42084 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-07-07 VulnCheck GHSA-332r-8pmf-8m9p
6.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Attacker deploys malicious web server
  2. Delivery
    Crafts HTML response with oversized entity-requiring attribute
  3. Exploit
    Victim runs wget against attacker URL
  4. Install
    html_quote_string() signed integer overflows during size accumulation
  5. C2
    Undersized heap buffer allocated
  6. Execute
    Out-of-bounds write during copy phase
  7. Impact
    wget process crash or heap exploitation

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
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 that a victim user or automated process runs GNU Wget version 1.25.0 or earlier to download content from an attacker-controlled server. The server must return an HTML response (not a binary or plain-text download) containing an attribute value with a sufficiently large number of characters requiring HTML entity encoding to trigger the integer overflow in html_quote_string(). The CVSS UI:P metric confirms that user interaction is required - the victim must initiate the wget request. AC:H indicates non-trivial alignment of conditions (specific HTML content and attribute size thresholds). Exploitation is bounded by three concrete requirements: wget version ≤ 1.25.0; the HTML link conversion code path being exercised on the server's response; and the attribute containing enough entity-encodable characters to overflow the signed integer accumulator. Automated wget invocations in CI/CD pipelines or container build scripts that fetch from third-party or user-supplied URLs represent the highest-risk deployment pattern. Scripts that exclusively download binary files or content from fully trusted, controlled servers are not affected by this code path.

Impact

The CVSS 4.0 score of 6.0 with vector AV:N/AC:H/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N reflects realistic exploitation constraints accurately. High attack complexity (AC:H) and required user interaction (UI:P) are the dominant risk reducers - a victim must actively run wget against an attacker-controlled server, and that server must deliver a precisely crafted HTML attribute triggering the integer overflow in the conversion path. The primary confirmed impact is availability (VA:H), most likely a process crash; while heap overflows can sometimes be elevated to code execution through heap grooming, this requires additional exploitation sophistication and is not confirmed. No EPSS score was provided in the input data, no CISA KEV listing exists, and no public proof-of-concept has been identified, suggesting no observed mass exploitation at time of analysis. The realistic risk is highest in automated pipelines or scripts that invoke wget against third-party or user-supplied URLs; interactive usage against trusted sources presents minimal practical risk. This is a medium-priority remediation: apply the upstream fix at the next maintenance cycle, prioritizing environments that use wget in CI/CD automation or that fetch content from untrusted origins.

Exploit ScenarioDerived

An attacker operates a malicious web server and lures a victim user or automated script to run wget against a URL on that server. The server responds with an HTML page containing an attribute value composed of thousands of characters requiring HTML entity encoding; when wget processes this response through its link-conversion code, the signed integer counter in html_quote_string() overflows, an undersized heap buffer is allocated, and the copy phase writes beyond it - crashing the wget process or, in a more sophisticated heap-layout attack, potentially redirecting execution. No public proof-of-concept exploit 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 a remote server to corrupt client-side memory by serving a crafted HTML page containing attributes with a large number of characters requiring entity encoding. The flaw originates in the html_quote_string() function in src/convert.c, where a signed integer counter overflows during output size accumulation, causing an undersized heap allocation; the subsequent copy phase then writes beyond that buffer's bounds. No public exploit code has been identified and no CISA KEV listing exists at time of analysis, but the memory corruption class warrants patching, particularly in environments where wget is used to fetch content from untrusted servers.

RemediationAI

The primary fix is to apply upstream commit dd692d9 from the GNU Wget GitLab repository (https://gitlab.com/gnuwget/wget/-/commit/dd692d9cea5335b181d877ae917fe6e75587a812), or to upgrade wget via your Linux distribution's package manager once a patched release is available (e.g., apt upgrade wget on Debian/Ubuntu or dnf update wget on RHEL/Fedora). A specific patched release version number is not independently confirmed - the fix exists as a commit rather than a tagged release at time of analysis, so consult the VulnCheck advisory (https://www.vulncheck.com/advisories/gnu-wget-heap-buffer-overflow-via-html-attribute-encoding) and your distribution's security tracker for the first packaged version. As a compensating control in the interim, restrict wget usage to allowlisted trusted domains in all automated scripts and CI/CD pipelines, preventing contact with attacker-controlled servers; note this does not address supply-chain scenarios where a trusted server serves attacker-influenced content. Disabling the --convert-links option (which exercises the HTML conversion code path) can reduce exposure in scripts that do not require local link rewriting, though the precise conditions triggering html_quote_string() in default wget operation should be verified against the fix commit before relying on this.

Affected VersionsENISA

Wget 0 ≤1.25.0
Wget patch: dd692d9cea5335b181d877ae917fe6e75587a812

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's HTML conversion subsystem processes downloaded HTML pages to rewrite links for local storage, using html_quote_string() in src/convert.c to encode special characters (such as <, >, &, and ") as their HTML entity equivalents. The root cause is CWE-190 (Integer Overflow or Wraparound): a signed integer accumulator used to compute the required output buffer size wraps to a negative or artificially small value when a server-supplied attribute contains a sufficiently large quantity of characters needing multi-byte entity substitution. The resulting malloc() call produces an undersized heap buffer, and the subsequent character-by-character copy writes past the allocation boundary - a classic heap buffer overflow. All GNU Wget versions through 1.25.0 are affected per CPE cpe:2.3:a:gnuwget:wget:*:*:*:*:*:*:*:*; the upstream fix is commit dd692d9 in the GNU Wget GitLab repository.

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

AV:N because the malicious server triggers the flaw over the network; AC:H and UI:R because the victim must run wget against an attacker URL; A:H for heap corruption causing crash; no confidentiality impact; I:L for potential heap write primitive.

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 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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
High
core download utility installed by default on 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.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

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