# CVE-2026-58472: GNU Wget 1.25.0 Heap Buffer Overflow via HTML Attribute Encoding

> A remote attacker can trigger a heap buffer overflow in GNU Wget via crafted HTML attributes, potentially leading to code execution or denial of service.

- **Severity:** Medium 6.0 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 7 Jul 2026
- **Updated:** 14 Jul 2026
- **Also known as:** CLSA-2026-1784107647, DEBIAN-CVE-2026-58472, ECHO-3772-079f-c642, GHSA-332r-8pmf-8m9p, JLSEC-2026-1161, ROOT-OS-ALPINE-322-CVE-2026-58472, ROOT-OS-ALPINE-323-CVE-2026-58472, ROOT-OS-DEBIAN-11-CVE-2026-58472, ROOT-OS-DEBIAN-12-CVE-2026-58472, ROOT-OS-DEBIAN-13-CVE-2026-58472, UBUNTU-CVE-2026-58472

## What is CVE-2026-58472?

CVE-2026-58472 is a medium-severity vulnerability in gnuwget wget, published on 7 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

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.

Weakness: CWE-190 (Integer Overflow or Wraparound)

## Which versions are affected by CVE-2026-58472?

It affects 1 product.


Products: Gnu Wget.

## How do I fix CVE-2026-58472?

Apply the vendor's patch.

## Is CVE-2026-58472 being exploited?

There is no known exploitation of CVE-2026-58472 in the wild and no public exploit code.

## Other vulnerabilities in gnuwget wget

- [CVE-2019-5953](https://insights.sbomify.com/CVE-2019-5953/): Memory corruption in GNU Wget (critical 9.8)
- [CVE-2014-4877](https://insights.sbomify.com/CVE-2014-4877/): Path traversal in n/a (critical 9.3)
- [CVE-2024-38428](https://insights.sbomify.com/CVE-2024-38428/): Other in n/a (critical 9.1)
- [CVE-2026-58469](https://insights.sbomify.com/CVE-2026-58469/): GNU Wget 1.25.0 Heap Buffer Underread via Metalink URL Parsing (high 8.7)
- [CVE-2016-7098](https://insights.sbomify.com/CVE-2016-7098/): Race condition in n/a (high 8.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-58472 and fix it if it is affected.

What it is: CVE-2026-58472 is a medium-severity vulnerability in gnuwget wget, published on 7 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-58472 in the wild and no public exploit code.

Affected product: gnuwget wget. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-58472/ (Markdown: https://insights.sbomify.com/CVE-2026-58472/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-58472
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-58472
- OSV: https://osv.dev/vulnerability/CVE-2026-58472

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-58472/
Summaries are generated and may contain mistakes; the official description above is the record.
