nday
CVE-2017-13089

GNU Wget: stack overflow in HTTP protocol handling

GNU Project / Wget

Technical analysis appeared 6 days after disclosure. nday has no fix record for it yet; that does not mean no patch exists. None of the four PoC sources lists it. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

buffer overflow / out-of-bounds write
CWE-119, stated by NVD's analystsCWE-121, stated by the CNA certcc and NVD, republishing [email protected]
network
AV:N in CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.0) from the CNA certcc
no authentication required
PR:N in CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.0) from the CNA certcc
stage
ANA
disclosed
disclosure → analysis
T+6d
cvss
8.8 HIGH v3.0

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
2017-10-27T19:00Z
PATpatch
no record yet
ANAanalysis
2017-11-02T09:37Z
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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.

Original text of the CVE record (cvelist), shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:N
None: no account or authorization needed
User interaction UI:R
Required: a user must do something, such as open a file or click a link

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CVSS 3.0 vector from the CVE record, scored by the CNA certcc.

Event log

+DISdisclosed

CVE record published by certcc. CVSS 8.8, high.

src cvelist · nday , bulk import · raw
{
  "id": 172245,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2017-13089",
  "occurred_at": "2017-10-27T19:00:00Z",
  "observed_at": "2026-11-13T05:36:35.714769Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
      "version": "3.0",
      "base_score": 8.8,
      "base_severity": "HIGH"
    },
    "state": "PUBLISHED",
    "date_published": "2017-10-27T19:00:00.000Z",
    "assigner_short_name": "certcc"
  }
}
+ANAtechnical analysis

Synology security advisory: “Synology-SA-17:62 Wget”.

src advisory s8:1163 · nday , bulk import · raw
{
  "id": 553366,
  "type": "analysis_published",
  "source": "advisory",
  "url": "https://www.synology.com/en-global/support/security/Synology_SA_17_62_Wget",
  "occurred_at": "2017-11-02T09:37:11Z",
  "observed_at": "2026-11-26T12:44:57.728493Z",
  "is_backfill": true,
  "dedupe_key": "s8:1163",
  "detail": {
    "title": "Synology-SA-17:62 Wget",
    "vendor": "Synology",
    "precision": "time",
    "source_id": 8
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Researcher discussion

0 researchers mentioned this in the last 7 days

Posts on X by researchers on nday's list that mention this CVE, shown as posted. nday does not check them.

nday has not collected any post on X by listed researchers that mentions this CVE.

Discussion

0 comments

No comments yet.