nday
CVE-2017-17405

Ruby before 2.4.3 allows Net::FTP command injectionTitle composed by nday; the CVE record has none.

A public PoC appeared 13 days before the CVE record was published. nday has no fix record for it yet; that does not mean no patch exists. Listed by 1 of 4 PoC sources: exploitdb. Not in CISA KEV.

tags weakness typecommand injection accessnetworkno authentication required exploitationExploit-DB
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.

command injection
CWE-78, stated by NVD's analysts
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 NVD's analysts
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 NVD's analysts
Exploit-DB
Exploit-DB entries 43381
stage
POC
disclosed
cvss
no score yet

Lifecycle

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

Summary

Ruby before 2.4.3 allows Net::FTP command injection. Net::FTP#get, getbinaryfile, gettextfile, put, putbinaryfile, and puttextfile use Kernel#open to open a local file. If the localfile argument starts with the "|" pipe character, the command following the pipe character is executed. The default value of localfile is File.basename(remotefile), so malicious FTP servers could cause arbitrary command execution.

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

Event log

2017-12-02date only, from source
+POCpublic PoC

Exploit-DB lists public exploit code “Ruby < 2.2.8 / < 2.3.5 / < 2.4.2 / < 2.5.0-preview1 - 'NET::Ftp' Command Injection” (EDB-43381).

src exploitdb 43381 · nday , bulk import · raw
{
  "id": 42314,
  "type": "poc_published",
  "source": "exploitdb",
  "url": "https://www.exploit-db.com/exploits/43381",
  "occurred_at": "2017-12-02T00:00:00Z",
  "observed_at": "2026-11-12T15:24:40.221206Z",
  "is_backfill": true,
  "dedupe_key": "43381",
  "detail": {
    "url": "https://www.exploit-db.com/exploits/43381",
    "file": "exploits/ruby/local/43381.md",
    "kind": "exploit",
    "tags": [],
    "type": "local",
    "title": "Ruby < 2.2.8 / < 2.3.5 / < 2.4.2 / < 2.5.0-preview1 - 'NET::Ftp' Command Injection",
    "author": "Etienne Stalmans",
    "edb_id": 43381,
    "cve_ids": [
      "CVE-2017-17405"
    ],
    "platform": "ruby",
    "verified": false,
    "precision": "day",
    "confidence": "curated",
    "date_added": "2017-12-21",
    "date_updated": "2017-12-21",
    "date_published": "2017-12-02"
  }
}
+DISdisclosed

CVE record published by mitre.

src cvelist · nday , bulk import · raw
{
  "id": 66900,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2017-17405",
  "occurred_at": "2017-12-15T09:00:00Z",
  "observed_at": "2026-11-13T00:04:12.549297Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2017-12-15T09:00:00.000Z",
    "assigner_short_name": "mitre"
  }
}

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.