Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose arbitrary…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 18 fixed, 2 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-119 and the CVSS impact.
Summary
Ruby through 2.2.7, 2.3.x through 2.3.4, and 2.4.x through 2.4.1 can expose arbitrary memory during a JSON.generate call. The issues lies in using strdup in ext/json/ext/generator/generator.c, which will stop after encountering a '\0' byte, returning a pointer to a string of length zero, which is not the length stored in space_len.
Why it matters now
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 |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 29
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* | up to 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.0:preview1:*:*:*:*:*:* | 2.3.0 preview1 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.3.0:preview2:*:*:*:*:*:* | 2.3.0 preview2 | 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.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.0:preview1:*:*:*:*:*:* | 2.4.0 preview1 | Vulnerable | ruby |
- cpe:2.3:a:ruby-lang:ruby:*:*:*:*:*:*:*:* Versions up to 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.0:preview1:*:*:*:*:*:* Versions 2.3.0 preview1 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.3.0:preview2:*:*:*:*:*:* Versions 2.3.0 preview2 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.3.1:*:*:*:*:*:*:* Versions 2.3.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.0:preview1:*:*:*:*:*:* Versions 2.4.0 preview1 Vulnerable ·ruby
Show 19 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ruby-lang:ruby:2.4.0:preview2:*:*:*:*:*:* | 2.4.0 preview2 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.4.0:preview3:*:*:*:*:*:* | 2.4.0 preview3 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.4.0:rc1:*:*:*:*:*:* | 2.4.0 rc1 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.4.1:*:*:*:*:*:*:* | 2.4.1 | Vulnerable | ruby |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* | 17.10 | Vulnerable | Canonical |
| cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* | 7.4 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:* | 7.4 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* | 7.5 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:* | 7.4 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
- cpe:2.3:a:ruby-lang:ruby:2.4.0:preview2:*:*:*:*:*:* Versions 2.4.0 preview2 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.4.0:preview3:*:*:*:*:*:* Versions 2.4.0 preview3 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.4.0:rc1:*:*:*:*:*:* Versions 2.4.0 rc1 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.4.1:*:*:*:*:*:*:* Versions 2.4.1 Vulnerable ·ruby
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:* Versions 17.10 Vulnerable ·Canonical
- cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* Versions 7.4 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:* Versions 7.4 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* Versions 7.5 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:* Versions 7.4 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
Remediation
Red Hat 7 advisories
- RHSA-2026:8838 Released 2026-04-17 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby4.0-4.0.0-33.3.hum1@aarch64, ruby4.0-4.0.0-33.3.hum1@src, ruby4.0-4.0.0-33.3.hum1@x86_64 +10
- RHSA-2026:7307 Released 2026-04-09 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby3.4-3.4.8-31.1.hum1@aarch64, ruby3.4-3.4.8-31.1.hum1@src, ruby3.4-3.4.8-31.1.hum1@x86_64 +10
- RHSA-2026:7305 Released 2026-04-09 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images ruby3.3-3.3.10-23.1.hum1@aarch64, ruby3.3-3.3.10-23.1.hum1@src, ruby3.3-3.3.10-23.1.hum1@x86_64 +10
Show 4 more Red Hat 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
- 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: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| CloudForms Management Engine 5 | Affected | No fix yet |
| Red Hat Subscription Asset Manager | Affected | — |
| 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 Hardened Images | Fixed | RHSA-2026:7305, RHSA-2026:7307, RHSA-2026:8838 |
| 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
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2017-14064
- 2026-10-03 Alias added: GHSA-954h-8gv7-2q75
- 2026-11-06 Affected versions changed · Red Hat
References
Exploit 1
Patch 2
Advisory 10
Sources
- CVE-2017-14064 · CVE Program
- CVE-2017-14064 · NVD
- FIRST EPSS
- GHSA-954h-8gv7-2q75 · GitHub Advisory Database · CC BY 4.0
- CVE-2017-14064 · 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