Ruby before 2.4.2, 2.3.5, and 2.2.8 is vulnerable to a malicious format string which…
Priority MEDIUM 51CWE-134Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · High
- Fix status
- Partial Red Hat: 17 fixed, 1 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat.
Summary
Ruby before 2.4.2, 2.3.5, and 2.2.8 is vulnerable to a malicious format string which contains a precious specifier (*) with a huge minus value. Such situation can lead to a buffer overrun, resulting in a heap memory corruption or an information disclosure from the heap.
Why it matters now
EPSS 0.09718 95th percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Partial Red Hat: 4 advisoriesRed Hat: 17 fixed, 1 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| HackerOne | Ruby | Versions before 2.4.2, 2.3.5, and 2.2.8 | — | No fix listed | CNA |
- Ruby VendorHackerOne Affected Versions before 2.4.2, 2.3.5, and 2.2.8 Fixed in — No fix listed CNA
CPE configurations NVD · 15
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ruby-lang:ruby:2.2.0:*:*:*:*:*:*:* | 2.2.0 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.2.1:*:*:*:*:*:*:* | 2.2.1 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.2.2:*:*:*:*:*:*:* | 2.2.2 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.2.3:*:*:*:*:*:*:* | 2.2.3 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.2.4:*:*:*:*:*:*:* | 2.2.4 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.2.5:*:*:*:*:*:*:* | 2.2.5 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.2.6:*:*:*:*:*:*:* | 2.2.6 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.2.7:*:*:*:*:*:*:* | 2.2.7 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.3.0:*:*:*:*:*:*:* | 2.3.0 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.3.1:*:*:*:*:*:*:* | 2.3.1 | Vulnerable | ruby |
- cpe:2.3:a:ruby-lang:ruby:2.2.0:*:*:*:*:*:*:* Versions 2.2.0 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.2.1:*:*:*:*:*:*:* Versions 2.2.1 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.2.2:*:*:*:*:*:*:* Versions 2.2.2 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.2.3:*:*:*:*:*:*:* Versions 2.2.3 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.2.4:*:*:*:*:*:*:* Versions 2.2.4 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.2.5:*:*:*:*:*:*:* Versions 2.2.5 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.2.6:*:*:*:*:*:*:* Versions 2.2.6 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.2.7:*:*:*:*:*:*:* Versions 2.2.7 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.3.0:*:*:*:*:*:*:* Versions 2.3.0 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.3.1:*:*:*:*:*:*:* Versions 2.3.1 Vulnerable ·ruby
Show 5 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ruby-lang:ruby:2.3.2:*:*:*:*:*:*:* | 2.3.2 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.3.3:*:*:*:*:*:*:* | 2.3.3 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.3.4:*:*:*:*:*:*:* | 2.3.4 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.4.0:*:*:*:*:*:*:* | 2.4.0 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.4.1:*:*:*:*:*:*:* | 2.4.1 | Vulnerable | ruby |
- cpe:2.3:a:ruby-lang:ruby:2.3.2:*:*:*:*:*:*:* Versions 2.3.2 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.3.3:*:*:*:*:*:*:* Versions 2.3.3 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.3.4:*:*:*:*:*:*:* Versions 2.3.4 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.4.0:*:*:*:*:*:*:* Versions 2.4.0 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.4.1:*:*:*:*:*:*:* Versions 2.4.1 Vulnerable ·ruby
Remediation
Red Hat 4 advisories
- RHSA-2018:0585 Released 2018-03-26 · Red Hat rating Importantrh-ruby23-ruby security, bug fix, and enhancement update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-ruby23-ruby-2.3.6-67.el6, rh-ruby23-ruby-devel-2.3.6-67.el6, rh-ruby23-ruby-doc-2.3.6-67.el6 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-ruby23-ruby-2.3.6-67.el7, rh-ruby23-ruby-devel-2.3.6-67.el7, rh-ruby23-ruby-doc-2.3.6-67.el7 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-ruby23-ruby-2.3.6-67.el6, rh-ruby23-ruby-devel-2.3.6-67.el6, rh-ruby23-ruby-doc-2.3.6-67.el6 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-ruby23-ruby-2.3.6-67.el7, rh-ruby23-ruby-devel-2.3.6-67.el7, rh-ruby23-ruby-doc-2.3.6-67.el7 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-ruby23-ruby-2.3.6-67.el7, rh-ruby23-ruby-devel-2.3.6-67.el7, rh-ruby23-ruby-doc-2.3.6-67.el7 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-ruby23-ruby-2.3.6-67.el6, rh-ruby23-ruby-devel-2.3.6-67.el6, rh-ruby23-ruby-doc-2.3.6-67.el6 +16
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-ruby23-ruby-2.3.6-67.el7, rh-ruby23-ruby-devel-2.3.6-67.el7, rh-ruby23-ruby-doc-2.3.6-67.el7 +16
- RHSA-2018:0583 Released 2018-03-26 · Red Hat rating Importantrh-ruby22-ruby security, bug fix, and enhancement update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-ruby22-ruby-2.2.9-19.el6, rh-ruby22-ruby-devel-2.2.9-19.el6, rh-ruby22-ruby-doc-2.2.9-19.el6 +14
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-ruby22-ruby-2.2.9-19.el7, rh-ruby22-ruby-devel-2.2.9-19.el7, rh-ruby22-ruby-doc-2.2.9-19.el7 +14
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-ruby22-ruby-2.2.9-19.el6, rh-ruby22-ruby-devel-2.2.9-19.el6, rh-ruby22-ruby-doc-2.2.9-19.el6 +14
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-ruby22-ruby-2.2.9-19.el7, rh-ruby22-ruby-devel-2.2.9-19.el7, rh-ruby22-ruby-doc-2.2.9-19.el7 +14
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-ruby22-ruby-2.2.9-19.el7, rh-ruby22-ruby-devel-2.2.9-19.el7, rh-ruby22-ruby-doc-2.2.9-19.el7 +14
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-ruby22-ruby-2.2.9-19.el6, rh-ruby22-ruby-devel-2.2.9-19.el6, rh-ruby22-ruby-doc-2.2.9-19.el6 +14
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-ruby22-ruby-2.2.9-19.el7, rh-ruby22-ruby-devel-2.2.9-19.el7, rh-ruby22-ruby-doc-2.2.9-19.el7 +14
- RHSA-2018:0378 Released 2018-02-28 · Red Hat rating Importantruby security update
- Red Hat Enterprise Linux Client (v. 7) ruby-2.0.0.648-33.el7_4, ruby-irb-2.0.0.648-33.el7_4, ruby-libs-2.0.0.648-33.el7_4 +6
- Red Hat Enterprise Linux Client Optional (v. 7) ruby-devel-2.0.0.648-33.el7_4, ruby-doc-2.0.0.648-33.el7_4, ruby-tcltk-2.0.0.648-33.el7_4 +3
- Red Hat Enterprise Linux ComputeNode (v. 7) ruby-2.0.0.648-33.el7_4, ruby-irb-2.0.0.648-33.el7_4, ruby-libs-2.0.0.648-33.el7_4 +6
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) ruby-devel-2.0.0.648-33.el7_4, ruby-doc-2.0.0.648-33.el7_4, ruby-tcltk-2.0.0.648-33.el7_4 +3
- Red Hat Enterprise Linux Server (v. 7) ruby-2.0.0.648-33.el7_4, ruby-irb-2.0.0.648-33.el7_4, ruby-libs-2.0.0.648-33.el7_4 +7
- Red Hat Enterprise Linux Server Optional (v. 7) ruby-devel-2.0.0.648-33.el7_4, ruby-doc-2.0.0.648-33.el7_4, ruby-tcltk-2.0.0.648-33.el7_4 +3
- Red Hat Enterprise Linux Workstation (v. 7) ruby-2.0.0.648-33.el7_4, ruby-irb-2.0.0.648-33.el7_4, ruby-libs-2.0.0.648-33.el7_4 +6
- Red Hat Enterprise Linux Workstation Optional (v. 7) ruby-devel-2.0.0.648-33.el7_4, ruby-doc-2.0.0.648-33.el7_4, ruby-tcltk-2.0.0.648-33.el7_4 +3
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) ruby-2.0.0.648-33.el7_4, ruby-irb-2.0.0.648-33.el7_4, ruby-libs-2.0.0.648-33.el7_4 +6
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) ruby-devel-2.0.0.648-33.el7_4, ruby-doc-2.0.0.648-33.el7_4, ruby-tcltk-2.0.0.648-33.el7_4 +3
Show 1 more Red Hat advisories
- RHSA-2017:3485 Released 2017-12-19 · Red Hat rating Moderaterh-ruby24-ruby security, bug fix, and enhancement update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-ruby24-ruby-2.4.2-86.el6, rh-ruby24-ruby-devel-2.4.2-86.el6, rh-ruby24-ruby-doc-2.4.2-86.el6 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-ruby24-ruby-2.4.2-86.el7, rh-ruby24-ruby-devel-2.4.2-86.el7, rh-ruby24-ruby-doc-2.4.2-86.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-ruby24-ruby-2.4.2-86.el6, rh-ruby24-ruby-devel-2.4.2-86.el6, rh-ruby24-ruby-doc-2.4.2-86.el6 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-ruby24-ruby-2.4.2-86.el7, rh-ruby24-ruby-devel-2.4.2-86.el7, rh-ruby24-ruby-doc-2.4.2-86.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-ruby24-ruby-2.4.2-86.el7, rh-ruby24-ruby-devel-2.4.2-86.el7, rh-ruby24-ruby-doc-2.4.2-86.el7 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-ruby24-ruby-2.4.2-86.el6, rh-ruby24-ruby-devel-2.4.2-86.el6, rh-ruby24-ruby-doc-2.4.2-86.el6 +17
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-ruby24-ruby-2.4.2-86.el7, rh-ruby24-ruby-devel-2.4.2-86.el7, rh-ruby24-ruby-doc-2.4.2-86.el7 +17
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Subscription Asset Manager | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2018:0378 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2018:0378 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2018:0378 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2018:0378 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:0378 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2018:0378 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:0378 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2018:0378 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) | Fixed | RHSA-2018:0378 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) | Fixed | RHSA-2018:0378 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2017:3485, RHSA-2018:0583, RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2017:3485, RHSA-2018:0583, RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) | Fixed | RHSA-2017:3485, RHSA-2018:0583, RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) | Fixed | RHSA-2017:3485, RHSA-2018:0583, RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) | Fixed | RHSA-2017:3485, RHSA-2018:0583, RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2017:3485, RHSA-2018:0583, RHSA-2018:0585 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2017:3485, RHSA-2018:0583, RHSA-2018:0585 |
Not affected: 3 products
- CloudForms Management Engine 5
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
Timeline
- 2026-10-02 Threatist record created from CVE-2017-0898
- 2026-10-03 Alias added: GHSA-wvmx-3rv2-5jgf
References
Advisory 8
More Ruby vulnerabilities
- TI-2026-71508 Integer overflow in GitLab allows code execution on the server KEVCVSS 3.1CRITICAL 10.0
- TI-2017-12709 Ruby before 2.4.3 allows Net::FTP command injection. CVSS 3.0HIGH 8.8
- TI-2008-03501 Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.split_header_value… CVSS 2.0HIGH 7.8
- TI-2021-09891 In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web… CVSS 3.1HIGH 7.5
- TI-2013-03637 Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1… CVSS 2.0MEDIUM 6.8
- TI-2018-11751 An issue was discovered in the OpenSSL library in Ruby before 2.3.8, 2.4.x before 2.4.5… CVSS 3.0CRITICAL 9.8
Sources
- CVE-2017-0898 · CVE Program
- CVE-2017-0898 · NVD
- FIRST EPSS
- GHSA-wvmx-3rv2-5jgf · GitHub Advisory Database · CC BY 4.0
- CVE-2017-0898 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences