ruby: Command injection vulnerability in Net::FTP
Published Dec 15, 2017
8.8
HIGHCVSS 3.0
EPSS 73.83%
Description
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.
Affected products
No data.
Configuration 1
Configuration 2
- 7.0
- 8.0
- 9.0
Configuration 3
- 7.0
- 7.0
- 7.4
- 7.6
- 7.4
- 7.5
- 7.6
- 7.4
- 7.6
- 7.0
No data.
Red Hat Enterprise Linux 7
ruby-0:2.0.0.648-33.el7_4
Fixed · RHSA-2018:0378
Red Hat Enterprise Linux 7.3 Advanced Update Support
ruby-0:2.0.0.648-30.el7_3
Fixed · RHSA-2019:2806
Red Hat Enterprise Linux 7.3 Telco Extended Update Support
ruby-0:2.0.0.648-30.el7_3
Fixed · RHSA-2019:2806
Red Hat Enterprise Linux 7.3 Update Services for SAP Solutions
ruby-0:2.0.0.648-30.el7_3
Fixed · RHSA-2019:2806
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby22-ruby-0:2.2.9-19.el6
Fixed · RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby23-ruby-0:2.3.6-67.el6
Fixed · RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-ruby24-ruby-0:2.4.3-90.el6
Fixed · RHSA-2018:0584
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-ruby22-ruby-0:2.2.9-19.el6
Fixed · RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-ruby23-ruby-0:2.3.6-67.el6
Fixed · RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-ruby24-ruby-0:2.4.3-90.el6
Fixed · RHSA-2018:0584
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby22-ruby-0:2.2.9-19.el7
Fixed · RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby23-ruby-0:2.3.6-67.el7
Fixed · RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-ruby24-ruby-0:2.4.3-90.el7
Fixed · RHSA-2018:0584
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-ruby22-ruby-0:2.2.9-19.el7
Fixed · RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-ruby23-ruby-0:2.3.6-67.el7
Fixed · RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-ruby24-ruby-0:2.4.3-90.el7
Fixed · RHSA-2018:0584
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby22-ruby-0:2.2.9-19.el7
Fixed · RHSA-2018:0583
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby23-ruby-0:2.3.6-67.el7
Fixed · RHSA-2018:0585
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-ruby24-ruby-0:2.4.3-90.el7
Fixed · RHSA-2018:0584
CloudForms Management Engine 5
rh-ruby22-ruby
Affected
CloudForms Management Engine 5
ruby-200-ruby
Affected
Red Hat Enterprise Linux 5
ruby
Will not fix
Red Hat Enterprise Linux 6
ruby
Will not fix
Red Hat Subscription Asset Manager
ruby193-ruby
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | ruby-0:2.0.0.648-33.el7_4 | Fixed | RHSA-2018:0378 |
| Red Hat Enterprise Linux 7.3 Advanced Update Support | ruby-0:2.0.0.648-30.el7_3 | Fixed | RHSA-2019:2806 |
| Red Hat Enterprise Linux 7.3 Telco Extended Update Support | ruby-0:2.0.0.648-30.el7_3 | Fixed | RHSA-2019:2806 |
| Red Hat Enterprise Linux 7.3 Update Services for SAP Solutions | ruby-0:2.0.0.648-30.el7_3 | Fixed | RHSA-2019:2806 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby22-ruby-0:2.2.9-19.el6 | Fixed | RHSA-2018:0583 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby23-ruby-0:2.3.6-67.el6 | Fixed | RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-ruby24-ruby-0:2.4.3-90.el6 | Fixed | RHSA-2018:0584 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-ruby22-ruby-0:2.2.9-19.el6 | Fixed | RHSA-2018:0583 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-ruby23-ruby-0:2.3.6-67.el6 | Fixed | RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-ruby24-ruby-0:2.4.3-90.el6 | Fixed | RHSA-2018:0584 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby22-ruby-0:2.2.9-19.el7 | Fixed | RHSA-2018:0583 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby23-ruby-0:2.3.6-67.el7 | Fixed | RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-ruby24-ruby-0:2.4.3-90.el7 | Fixed | RHSA-2018:0584 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-ruby22-ruby-0:2.2.9-19.el7 | Fixed | RHSA-2018:0583 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-ruby23-ruby-0:2.3.6-67.el7 | Fixed | RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-ruby24-ruby-0:2.4.3-90.el7 | Fixed | RHSA-2018:0584 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby22-ruby-0:2.2.9-19.el7 | Fixed | RHSA-2018:0583 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby23-ruby-0:2.3.6-67.el7 | Fixed | RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-ruby24-ruby-0:2.4.3-90.el7 | Fixed | RHSA-2018:0584 |
| CloudForms Management Engine 5 | rh-ruby22-ruby | Affected | n/a |
| CloudForms Management Engine 5 | ruby-200-ruby | Affected | n/a |
| Red Hat Enterprise Linux 5 | ruby | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | ruby | Will not fix | n/a |
| Red Hat Subscription Asset Manager | ruby193-ruby | Affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue affects the versions of ruby as shipped with Red Hat Subscription Asset Manager 1 and CloudForms 5. Red Hat Product Security has rated this issue as having Moderate security impact. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
AV:N/AC:M/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (58 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 73.83% (0.73829) | 99.47th | v5 (v2026.06.15) |
| Sep 22, 2026 | 73.83% (0.73829) | 99.45th | v5 (v2026.06.15) |
| Sep 21, 2026 | 70.41% (0.70412) | 99.38th | v5 (v2026.06.15) |
| Sep 6, 2026 | 73.83% (0.73829) | 99.44th | v5 (v2026.06.15) |
| Sep 5, 2026 | 70.41% (0.70412) | 99.36th | v5 (v2026.06.15) |
| Aug 30, 2026 | 73.83% (0.73829) | 99.44th | v5 (v2026.06.15) |
| Aug 28, 2026 | 70.41% (0.70412) | 99.36th | v5 (v2026.06.15) |
| Aug 24, 2026 | 73.83% (0.73829) | 99.43th | v5 (v2026.06.15) |
| Aug 23, 2026 | 70.41% (0.70412) | 99.36th | v5 (v2026.06.15) |
| Jun 15, 2026 | 73.93% (0.73927) | 99.41th | v5 (v2026.06.15) |
| Mar 4, 2026 | 88.65% (0.88646) | 99.49th | v4 (v2025.03.14) |
| Mar 1, 2026 | 86.83% (0.86835) | 99.42th | v4 (v2025.03.14) |
| Feb 4, 2026 | 88.65% (0.88646) | 99.49th | v4 (v2025.03.14) |
| Feb 1, 2026 | 86.83% (0.86835) | 99.42th | v4 (v2025.03.14) |
| Jan 4, 2026 | 88.65% (0.88646) | 99.48th | v4 (v2025.03.14) |
| Jan 1, 2026 | 86.83% (0.86835) | 99.41th | v4 (v2025.03.14) |
| Dec 28, 2025 | 88.65% (0.88646) | 99.48th | v4 (v2025.03.14) |
| Dec 27, 2025 | 87.55% (0.87547) | 99.43th | v4 (v2025.03.14) |
| Dec 4, 2025 | 88.65% (0.88646) | 99.47th | v4 (v2025.03.14) |
| Dec 1, 2025 | 86.83% (0.86835) | 99.40th | v4 (v2025.03.14) |
| Nov 4, 2025 | 88.65% (0.88646) | 99.47th | v4 (v2025.03.14) |
| Nov 1, 2025 | 86.83% (0.86835) | 99.40th | v4 (v2025.03.14) |
| Oct 4, 2025 | 89.02% (0.89018) | 99.50th | v4 (v2025.03.14) |
| Sep 4, 2025 | 87.99% (0.87989) | 99.45th | v4 (v2025.03.14) |
| Sep 1, 2025 | 86.75% (0.86747) | 99.40th | v4 (v2025.03.14) |
| Aug 4, 2025 | 88.39% (0.88388) | 99.47th | v4 (v2025.03.14) |
| Aug 1, 2025 | 87.32% (0.87321) | 99.43th | v4 (v2025.03.14) |
| Jul 29, 2025 | 88.39% (0.88388) | 99.46th | v4 (v2025.03.14) |
| Jul 12, 2025 | 86.80% (0.86802) | 99.38th | v4 (v2025.03.14) |
| Jul 4, 2025 | 88.29% (0.88289) | 99.45th | v4 (v2025.03.14) |
| Jul 1, 2025 | 86.08% (0.86078) | 99.35th | v4 (v2025.03.14) |
| Jun 4, 2025 | 88.51% (0.88514) | 99.46th | v4 (v2025.03.14) |
| Jun 1, 2025 | 86.38% (0.86382) | 99.37th | v4 (v2025.03.14) |
| May 30, 2025 | 88.51% (0.88514) | 99.46th | v4 (v2025.03.14) |
| May 21, 2025 | 89.94% (0.89943) | 99.54th | v4 (v2025.03.14) |
| May 4, 2025 | 88.51% (0.88514) | 99.45th | v4 (v2025.03.14) |
| May 1, 2025 | 86.38% (0.86382) | 99.35th | v4 (v2025.03.14) |
| Apr 12, 2025 | 88.51% (0.88514) | 99.48th | v4 (v2025.03.14) |
| Mar 25, 2025 | 87.08% (0.87080) | 99.42th | v4 (v2025.03.14) |
| Mar 24, 2025 | 84.88% (0.84882) | 99.32th | v4 (v2025.03.14) |
| Mar 19, 2025 | 79.95% (0.79953) | 99.05th | v4 (v2025.03.14) |
| Mar 17, 2025 | 84.88% (0.84882) | 99.30th | v4 (v2025.03.14) |
| Dec 17, 2024 | 35.25% (0.35249) | 97.14th | v3 (v2023.03.01) |
| Feb 10, 2024 | 89.50% (0.89503) | 98.64th | v3 (v2023.03.01) |
| Nov 25, 2023 | 89.91% (0.89911) | 98.48th | v3 (v2023.03.01) |
| Oct 25, 2023 | 91.54% (0.91543) | 98.57th | v3 (v2023.03.01) |
| Sep 30, 2023 | 93.81% (0.93810) | 98.84th | v3 (v2023.03.01) |
| Aug 4, 2023 | 94.68% (0.94684) | 98.90th | v3 (v2023.03.01) |
| Jul 8, 2023 | 95.04% (0.95042) | 98.96th | v3 (v2023.03.01) |
| May 8, 2023 | 94.98% (0.94978) | 98.88th | v3 (v2023.03.01) |
| Mar 7, 2023 | 94.88% (0.94885) | 98.78th | v3 (v2023.03.01) |
| Mar 6, 2023 | 48.23% (0.48230) | 98.61th | v2 (v2022.01.01) |
| Feb 21, 2022 | 48.23% (0.48230) | 98.14th | v2 (v2022.01.01) |
| Feb 4, 2022 | 51.85% (0.51851) | 98.33th | v2 (v2022.01.01) |
| Feb 3, 2022 | 20.08% (0.20084) | 94.13th | v1 |
| Jan 6, 2022 | 20.08% (0.20084) | 94.06th | v1 |
| Sep 1, 2021 | 20.08% (0.20084) | 97.86th | v1 |
| Apr 14, 2021 | 20.08% (0.20084) | 0.00th | v1 |
References (18)
- http://www.securityfocus.com/bid/102204 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1042004 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:0378 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0583 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0584 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:0585 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2806 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2017-17405 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1526189 Issue Tracking
- https://lists.debian.org/debian-lts-announce/2017/12/msg00024.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2017/12/msg00025.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-17405
- https://www.cve.org/CVERecord?id=CVE-2017-17405
- https://www.debian.org/security/2018/dsa-4259 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.exploit-db.com/exploits/43381/ exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry
- https://www.ruby-lang.org/en/news/2017/12/14/net-ftp-command-injection-cve-2017-17405/ x_refsource_CONFIRMVendor Advisory
- https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-4-3-released/ x_refsource_CONFIRMPatchRelease NotesVendor Advisory
Change history (0)
No recorded changes yet.