# CVE-2017-13089: GNU Wget: stack overflow in HTTP protocol handling

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.0, CNA) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 79.86% (percentile 100, 2026-11-26)
- **CWE:** CWE-121
- **Published:** 2017-10-27T19:00:00.000Z
- **Modified:** 2026-06-17T01:04:31.357Z

## Who should check

- Anyone running GNU Project Wget prior to 1.19.2

## Description

The http.c:skip\_short\_body() function is called in some circumstances, such as when processing redirects. When the response is sent chunked in wget before 1.19.2, the chunk parser uses strtol() to read each chunk's length, but doesn't check that the chunk length is a non-negative number. The code then tries to skip the chunk in pieces of 512 bytes by using the MIN() macro, but ends up passing the negative chunk length to connect.c:fd\_read(). As fd\_read() takes an int argument, the high 32 bits of the chunk length are discarded, leaving fd\_read() with a completely attacker controlled length argument.

## Affected and fixed versions

- GNU Project Wget: prior to 1.19.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2017-13089. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2017-13089.md
Affected: GNU Project Wget prior to 1.19.2
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for GNU Project Wget: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2017-13089 being exploited?

There is no confirmed exploitation: CVE-2017-13089 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 79.86% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2017-13089?

High: CVSS 8.8 (v3.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2017-13089?

GNU Project Wget prior to 1.19.2.

### Is there a fix for CVE-2017-13089?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2017-13089?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://security.gentoo.org/glsa/201711-06>
- vendor: <http://www.debian.org/security/2017/dsa-4008>
- vendor: <https://access.redhat.com/errata/RHSA-2017:3075>
- patch: <https://www.viestintavirasto.fi/en/cybersecurity/vulnerabilities/2017/haavoittuvuus-2017-037.html>
- patch: <http://git.savannah.gnu.org/cgit/wget.git/commit/?id=d892291fb8ace4c3b734ea5125770989c215df3f>
- other: <https://www.synology.com/support/security/Synology_SA_17_62_Wget>
- other: <http://www.securityfocus.com/bid/101592>
- other: <https://github.com/r1b/CVE-2017-13089>
- other: <http://www.securitytracker.com/id/1039661>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2017-13089>

HTML: <https://flawdb.com/CVE-2017-13089> · JSON: <https://flawdb.com/api/v1/entries/CVE-2017-13089>
