Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Partial · Partial · Partial
- Fix status
- Partial Red Hat: 24 fixed, 5 without a fix
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-119 and the CVSS impact.
Summary
Heap-based buffer overflow in Ruby 1.8, 1.9 before 1.9.3-p484, 2.0 before 2.0.0-p353, 2.1 before 2.1.0 preview2, and trunk before revision 43780 allows context-dependent attackers to cause a denial of service (segmentation fault) and possibly execute arbitrary code via a string that is converted to a floating point value, as demonstrated using (1) the to_f method or (2) JSON.parse.
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 · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ruby-lang:ruby:1.8:*:*:*:*:*:*:* | 1.8 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.9:*:*:*:*:*:*:* | 1.9 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.9.1:*:*:*:*:*:*:* | 1.9.1 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.9.2:*:*:*:*:*:*:* | 1.9.2 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:1.9.3:*:*:*:*:*:*:* | 1.9.3 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.0.0:*:*:*:*:*:*:* | 2.0.0 | Vulnerable | ruby |
| cpe:2.3:a:ruby-lang:ruby:2.1:preview1:*:*:*:*:*:* | 2.1 preview1 | Vulnerable | ruby |
- cpe:2.3:a:ruby-lang:ruby:1.8:*:*:*:*:*:*:* Versions 1.8 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.9:*:*:*:*:*:*:* Versions 1.9 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.9.1:*:*:*:*:*:*:* Versions 1.9.1 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.9.2:*:*:*:*:*:*:* Versions 1.9.2 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:1.9.3:*:*:*:*:*:*:* Versions 1.9.3 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.0.0:*:*:*:*:*:*:* Versions 2.0.0 Vulnerable ·ruby
- cpe:2.3:a:ruby-lang:ruby:2.1:preview1:*:*:*:*:*:* Versions 2.1 preview1 Vulnerable ·ruby
Remediation
Red Hat 5 advisories
- RHSA-2014:0215 Released 2014-03-11 · Red Hat rating Criticalcfme security, bug fix, and enhancement update
- Management Engine cfme-5.2.2.3-1.el6cf, cfme-appliance-5.2.2.3-1.el6cf, cfme-lib-5.2.2.3-1.el6cf +20
- RHSA-2014:0011 Released 2014-01-07 · Red Hat rating Criticalruby193-ruby security update
- Red Hat Enterprise Linux OpenStack Platform 3.0 ruby193-ruby-1.9.3.448-40.1.el6, ruby193-ruby-devel-1.9.3.448-40.1.el6, ruby193-ruby-doc-1.9.3.448-40.1.el6 +8
- RHSA-2013:1767 Released 2013-11-26 · Red Hat rating Criticalruby security update
- Red Hat Enterprise Linux Compute Node EUS (v. 6.2) ruby-1.8.7.352-13.el6_2, ruby-irb-1.8.7.352-13.el6_2, ruby-libs-1.8.7.352-13.el6_2
- Red Hat Enterprise Linux Compute Node EUS (v. 6.3) ruby-1.8.7.352-13.el6_3, ruby-devel-1.8.7.352-13.el6_3, ruby-irb-1.8.7.352-13.el6_3 +2
- Red Hat Enterprise Linux Compute Node Optional EUS (v. 6.2) ruby-1.8.7.352-13.el6_2, ruby-devel-1.8.7.352-13.el6_2, ruby-docs-1.8.7.352-13.el6_2 +4
- Red Hat Enterprise Linux Compute Node Optional EUS (v. 6.3) ruby-1.8.7.352-13.el6_3, ruby-docs-1.8.7.352-13.el6_3, ruby-ri-1.8.7.352-13.el6_3 +2
- Red Hat Enterprise Linux Compute Node Optional EUS (v. 6.4) ruby-1.8.7.352-13.el6_4, ruby-docs-1.8.7.352-13.el6_4, ruby-ri-1.8.7.352-13.el6_4 +2
- Red Hat Enterprise Linux HPC Node EUS (v. 6.4) ruby-1.8.7.352-13.el6_4, ruby-devel-1.8.7.352-13.el6_4, ruby-irb-1.8.7.352-13.el6_4 +2
- Red Hat Enterprise Linux Server EUS (v. 6.2) ruby-1.8.7.352-13.el6_2, ruby-devel-1.8.7.352-13.el6_2, ruby-devel-1.8.7.352-13.el6_2.ppc +4
- Red Hat Enterprise Linux Server EUS (v. 6.3) ruby-1.8.7.352-13.el6_3, ruby-devel-1.8.7.352-13.el6_3, ruby-devel-1.8.7.352-13.el6_3.ppc +4
- Red Hat Enterprise Linux Server EUS (v. 6.4) ruby-1.8.7.352-13.el6_4, ruby-devel-1.8.7.352-13.el6_4, ruby-devel-1.8.7.352-13.el6_4.ppc +4
- Red Hat Enterprise Linux Server Optional EUS (v. 6.2) ruby-1.8.7.352-13.el6_2, ruby-devel-1.8.7.352-13.el6_2, ruby-devel-1.8.7.352-13.el6_2.ppc +5
- Red Hat Enterprise Linux Server Optional EUS (v. 6.3) ruby-1.8.7.352-13.el6_3, ruby-docs-1.8.7.352-13.el6_3, ruby-ri-1.8.7.352-13.el6_3 +2
- Red Hat Enterprise Linux Server Optional EUS (v. 6.4) ruby-1.8.7.352-13.el6_4, ruby-docs-1.8.7.352-13.el6_4, ruby-ri-1.8.7.352-13.el6_4 +2
Show 2 more Red Hat advisories
- RHSA-2013:1764 Released 2013-11-25 · Red Hat rating Criticalruby security update
- Red Hat Enterprise Linux Desktop (v. 6) ruby-1.8.7.352-13.el6, ruby-devel-1.8.7.352-13.el6, ruby-irb-1.8.7.352-13.el6 +2
- Red Hat Enterprise Linux Desktop Optional (v. 6) ruby-1.8.7.352-13.el6, ruby-docs-1.8.7.352-13.el6, ruby-ri-1.8.7.352-13.el6 +2
- Red Hat Enterprise Linux HPC Node (v. 6) ruby-1.8.7.352-13.el6, ruby-devel-1.8.7.352-13.el6, ruby-irb-1.8.7.352-13.el6 +2
- Red Hat Enterprise Linux HPC Node Optional (v. 6) ruby-1.8.7.352-13.el6, ruby-docs-1.8.7.352-13.el6, ruby-ri-1.8.7.352-13.el6 +2
- Red Hat Enterprise Linux Server (v. 6) ruby-1.8.7.352-13.el6, ruby-devel-1.8.7.352-13.el6, ruby-devel-1.8.7.352-13.el6.ppc +4
- Red Hat Enterprise Linux Server Optional (v. 6) ruby-1.8.7.352-13.el6, ruby-docs-1.8.7.352-13.el6, ruby-ri-1.8.7.352-13.el6 +2
- Red Hat Enterprise Linux Workstation (v. 6) ruby-1.8.7.352-13.el6, ruby-devel-1.8.7.352-13.el6, ruby-irb-1.8.7.352-13.el6 +2
- Red Hat Enterprise Linux Workstation Optional (v. 6) ruby-1.8.7.352-13.el6, ruby-docs-1.8.7.352-13.el6, ruby-ri-1.8.7.352-13.el6 +2
- RHSA-2013:1763 Released 2013-11-25 · Red Hat rating Criticalruby193-ruby security update
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 6) ruby193-ruby-1.9.3.448-40.1.el6, ruby193-ruby-devel-1.9.3.448-40.1.el6, ruby193-ruby-doc-1.9.3.448-40.1.el6 +11
- Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 6) ruby193-ruby-1.9.3.448-40.1.el6, ruby193-ruby-devel-1.9.3.448-40.1.el6, ruby193-ruby-doc-1.9.3.448-40.1.el6 +11
Vendor assessments
Red Hat
Red Hat rating: Critical. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| CloudForms Management Engine 5 | Affected | No fix yet |
| OpenShift Enterprise 1 | Affected | No fix planned: Will not fix |
| Red Hat OpenStack Platform 4 | Affected | No fix yet |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat Subscription Asset Manager | Affected | No fix yet |
| Management Engine | Fixed | RHSA-2014:0215 |
| Red Hat Enterprise Linux Compute Node EUS (v. 6.2) | Fixed | RHSA-2013:1767 |
| Red Hat Enterprise Linux Compute Node EUS (v. 6.3) | Fixed | RHSA-2013:1767 |
| Red Hat Enterprise Linux Compute Node Optional EUS (v. 6.2) | Fixed | RHSA-2013:1767 |
| Red Hat Enterprise Linux Compute Node Optional EUS (v. 6.3) | Fixed | RHSA-2013:1767 |
| Red Hat Enterprise Linux Compute Node Optional EUS (v. 6.4) | Fixed | RHSA-2013:1767 |
| Red Hat Enterprise Linux Desktop (v. 6) | Fixed | RHSA-2013:1764 |
| Red Hat Enterprise Linux Desktop Optional (v. 6) | Fixed | RHSA-2013:1764 |
| Red Hat Enterprise Linux HPC Node (v. 6) | Fixed | RHSA-2013:1764 |
| Red Hat Enterprise Linux HPC Node EUS (v. 6.4) | Fixed | RHSA-2013:1767 |
| Red Hat Enterprise Linux HPC Node Optional (v. 6) | Fixed | RHSA-2013:1764 |
| Red Hat Enterprise Linux OpenStack Platform 3.0 | Fixed | RHSA-2014:0011 |
| Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2013:1764 |
| Red Hat Enterprise Linux Server EUS (v. 6.2) | Fixed | RHSA-2013:1767 |
| Red Hat Enterprise Linux Server EUS (v. 6.3) | Fixed | RHSA-2013:1767 |
| Red Hat Enterprise Linux Server EUS (v. 6.4) | Fixed | RHSA-2013:1767 |
| Red Hat Enterprise Linux Server Optional (v. 6) | Fixed | RHSA-2013:1764 |
| Red Hat Enterprise Linux Server Optional EUS (v. 6.2) | Fixed | RHSA-2013:1767 |
| Red Hat Enterprise Linux Server Optional EUS (v. 6.3) | Fixed | RHSA-2013:1767 |
| Red Hat Enterprise Linux Server Optional EUS (v. 6.4) | Fixed | RHSA-2013:1767 |
| Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2013:1764 |
| Red Hat Enterprise Linux Workstation Optional (v. 6) | Fixed | RHSA-2013:1764 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2013:1763 |
| Red Hat Software Collections 1 for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2013:1763 |
Not affected: 3 products
- Red Hat Enterprise Linux 4
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 7
Timeline
- 2026-10-02 Threatist record created from CVE-2013-4164
- 2026-10-03 Alias added: GHSA-j98q-m2w8-57rc
References
Exploit 1
Advisory 13
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-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
- TI-2017-07892 The Basic authentication code in WEBrick library in Ruby before 2.2.8, 2.3.x before… CVSS 3.0HIGH 8.8
Sources
- CVE-2013-4164 · CVE Program
- CVE-2013-4164 · NVD
- FIRST EPSS
- GHSA-j98q-m2w8-57rc · GitHub Advisory Database · CC BY 4.0
- CVE-2013-4164 · 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