Code injection in HackerOne RubyGems
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: 17 fixed, 4 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-94.
Summary
RubyGems version 2.6.12 and earlier is vulnerable to maliciously crafted gem specifications that include terminal escape characters. Printing the gem specification would execute terminal escape sequences.
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 |
|---|---|---|---|---|---|
| HackerOne | RubyGems | before 2.6.13 | 2.6.13 | Patch available | CNA |
| — | rubygems-update (RubyGems) | before 2.6.13 | 2.6.13 | Patch available | GHSA-7gcp-2gmq-w3xh |
- RubyGems VendorHackerOne Affected before 2.6.13 Fixed in 2.6.13 Patch available CNA
- rubygems-update (RubyGems) Vendor— Affected before 2.6.13 Fixed in 2.6.13 Patch available GHSA-7gcp-2gmq-w3xh
CPE configurations NVD · 13
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:* | up to 2.6.12 | Vulnerable | rubygems |
| 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: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:a:rubygems:rubygems:*:*:*:*:*:*:*:* Versions up to 2.6.12 Vulnerable ·rubygems
- 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: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
Remediation
- Fix · CNA RubyGems (HackerOne) Fixed in 2.6.13
- Fix · GHSA-7gcp-2gmq-w3xh rubygems-update (RubyGems) Fixed in 2.6.13 Advisory →
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
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
HackerOne RubyGems — GLSA-201710-01
3 records Highest priority Priority MEDIUM 3 MEDIUM
Other records, highest priority first
- TI-2017-00849 Path traversal in HackerOne RubyGemsPriority MEDIUM 56
- TI-2017-00850 Origin validation error in HackerOne RubyGemsPriority MEDIUM 43
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise MRG 2 | Affected | — |
| Red Hat Satellite 6 | Affected | — |
| 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 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 |
Timeline
- 2026-10-02 Threatist record created from CVE-2017-0899
- 2026-10-03 Alias added: GHSA-7gcp-2gmq-w3xh
References
Exploit 1
Patch 3
Advisory 8
Sources
- CVE-2017-0899 · CVE Program
- CVE-2017-0899 · NVD
- FIRST EPSS
- GHSA-7gcp-2gmq-w3xh · GitHub Advisory Database · CC BY 4.0
- CVE-2017-0899 · 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