rubygems: Unsafe object deserialization through YAML formatted gem specifications
Published Oct 11, 2017
9.8
CRITICALCVSS 3.0
EPSS 15.85%
Description
RubyGems versions between 2.0.0 and 2.6.13 are vulnerable to a possible remote code execution vulnerability. YAML deserialization of gem specifications can bypass class white lists. Specially crafted serialized objects can possibly be used to escalate to remote code execution.
Affected products
-
- Version Versions >= 2.0.0StatusaffectedConstraints-
- Version
Configuration 1
- 2.0.0
- 2.0.0
- 2.0.0
- 2.0.0
- 2.0.0
- 2.0.0
- 2.0.1
- 2.0.2
- 2.0.3
- 2.0.4
- 2.0.5
- 2.0.6
- 2.0.7
- 2.0.8
- 2.0.9
- 2.0.10
- 2.0.11
- 2.0.12
- 2.0.13
- 2.0.14
- 2.0.15
- 2.0.16
- 2.0.17
- 2.1.0
- 2.1.0.rc.1
- 2.1.0.rc.2
- 2.1.1
- 2.1.2
- 2.1.3
- 2.1.4
- 2.1.5
- 2.1.6
- 2.1.7
- 2.1.8
- 2.1.9
- 2.1.10
- 2.1.11
- 2.2.0
- 2.2.0.preiew.1
- 2.2.0.rc.1
- 2.2.1
- 2.2.2
- 2.2.3
- 2.2.4
- 2.2.5
- 2.3.0
- 2.4.0
- 2.4.1
- 2.4.2
- 2.4.3
- 2.4.4
- 2.4.5
- 2.4.6
- 2.4.7
- 2.4.8
- 2.5.0
- 2.5.1
- 2.5.2
- 2.6.0
- 2.6.1
- 2.6.2
- 2.6.3
- 2.6.4
- 2.6.5
- 2.6.6
- 2.6.7
- 2.6.8
- 2.6.9
- 2.6.10
- 2.6.11
- 2.6.12
- 2.6.13
Configuration 2
- 8.0
- 9.0
Configuration 3
- 14.04
- 16.04
- 17.10
Configuration 4
- 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 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.2-86.el6
Fixed · RHSA-2017:3485
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.2-86.el6
Fixed · RHSA-2017:3485
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.2-86.el7
Fixed · RHSA-2017:3485
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.2-86.el7
Fixed · RHSA-2017:3485
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.2-86.el7
Fixed · RHSA-2017:3485
Red Hat Enterprise Linux 6
rubygems
Not affected
Red Hat Enterprise MRG 2
rubygems
Not affected
Red Hat Satellite 6
rubygems
Not affected
Red Hat Subscription Asset Manager
ruby193-rubygems
Not 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 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.2-86.el6 | Fixed | RHSA-2017:3485 |
| 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.2-86.el6 | Fixed | RHSA-2017:3485 |
| 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.2-86.el7 | Fixed | RHSA-2017:3485 |
| 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.2-86.el7 | Fixed | RHSA-2017:3485 |
| 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.2-86.el7 | Fixed | RHSA-2017:3485 |
| Red Hat Enterprise Linux 6 | rubygems | Not affected | n/a |
| Red Hat Enterprise MRG 2 | rubygems | Not affected | n/a |
| Red Hat Satellite 6 | rubygems | Not affected | n/a |
| Red Hat Subscription Asset Manager | ruby193-rubygems | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue did not affect the versions of rubygems as shipped with Red Hat Enterprise Linux 6. This issue affects the versions of ruby as shipped with Red Hat Enterprise Linux 7 and the versions of rh-ruby22-ruby and rh-ruby23-ruby as shipped with Red Hat Software Collections. 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:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
AV:N/AC:L/Au:N/C:P/I:P/A:P
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 (49 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 15.85% (0.15853) | 96.78th | v5 (v2026.06.15) |
| Jun 15, 2026 | 15.85% (0.15853) | 96.45th | v5 (v2026.06.15) |
| Mar 4, 2026 | 4.62% (0.04623) | 89.06th | v4 (v2025.03.14) |
| Mar 1, 2026 | 6.51% (0.06513) | 90.98th | v4 (v2025.03.14) |
| Feb 4, 2026 | 4.62% (0.04623) | 89.00th | v4 (v2025.03.14) |
| Feb 1, 2026 | 6.51% (0.06513) | 90.92th | v4 (v2025.03.14) |
| Jan 14, 2026 | 4.62% (0.04623) | 88.94th | v4 (v2025.03.14) |
| Jan 4, 2026 | 6.34% (0.06336) | 90.67th | v4 (v2025.03.14) |
| Jan 1, 2026 | 10.56% (0.10562) | 93.08th | v4 (v2025.03.14) |
| Dec 10, 2025 | 6.34% (0.06336) | 90.61th | v4 (v2025.03.14) |
| Dec 4, 2025 | 4.90% (0.04901) | 89.19th | v4 (v2025.03.14) |
| Dec 1, 2025 | 8.28% (0.08278) | 91.95th | v4 (v2025.03.14) |
| Nov 4, 2025 | 4.90% (0.04901) | 89.10th | v4 (v2025.03.14) |
| Nov 1, 2025 | 8.28% (0.08278) | 91.89th | v4 (v2025.03.14) |
| Oct 4, 2025 | 4.90% (0.04901) | 89.13th | v4 (v2025.03.14) |
| Oct 1, 2025 | 8.28% (0.08278) | 91.95th | v4 (v2025.03.14) |
| Sep 4, 2025 | 4.90% (0.04901) | 89.19th | v4 (v2025.03.14) |
| Sep 1, 2025 | 8.28% (0.08278) | 91.97th | v4 (v2025.03.14) |
| Aug 4, 2025 | 4.90% (0.04901) | 89.20th | v4 (v2025.03.14) |
| Aug 1, 2025 | 8.28% (0.08278) | 91.94th | v4 (v2025.03.14) |
| Jul 4, 2025 | 4.90% (0.04901) | 89.13th | v4 (v2025.03.14) |
| Jul 1, 2025 | 8.28% (0.08278) | 91.86th | v4 (v2025.03.14) |
| Jun 6, 2025 | 4.90% (0.04901) | 89.07th | v4 (v2025.03.14) |
| Jun 4, 2025 | 6.03% (0.06029) | 90.23th | v4 (v2025.03.14) |
| Jun 1, 2025 | 8.74% (0.08741) | 92.06th | v4 (v2025.03.14) |
| May 30, 2025 | 6.03% (0.06029) | 90.21th | v4 (v2025.03.14) |
| May 1, 2025 | 3.93% (0.03928) | 87.73th | v4 (v2025.03.14) |
| Apr 16, 2025 | 2.79% (0.02789) | 85.27th | v4 (v2025.03.14) |
| Apr 15, 2025 | 4.76% (0.04761) | 88.79th | v4 (v2025.03.14) |
| Mar 30, 2025 | 7.29% (0.07294) | 90.81th | v4 (v2025.03.14) |
| Mar 29, 2025 | 24.83% (0.24826) | 93.78th | v4 (v2025.03.14) |
| Mar 22, 2025 | 7.29% (0.07294) | 90.91th | v4 (v2025.03.14) |
| Mar 21, 2025 | 9.02% (0.09018) | 91.93th | v4 (v2025.03.14) |
| Mar 17, 2025 | 7.29% (0.07294) | 91.00th | v4 (v2025.03.14) |
| Dec 17, 2024 | 17.22% (0.17222) | 96.06th | v3 (v2023.03.01) |
| Dec 7, 2023 | 13.51% (0.13505) | 95.05th | v3 (v2023.03.01) |
| Sep 21, 2023 | 14.38% (0.14379) | 95.06th | v3 (v2023.03.01) |
| Aug 21, 2023 | 13.96% (0.13958) | 94.96th | v3 (v2023.03.01) |
| May 8, 2023 | 9.83% (0.09830) | 93.90th | v3 (v2023.03.01) |
| Apr 13, 2023 | 15.22% (0.15225) | 94.98th | v3 (v2023.03.01) |
| Mar 7, 2023 | 18.37% (0.18373) | 95.34th | v3 (v2023.03.01) |
| Mar 6, 2023 | 10.05% (0.10052) | 94.55th | v2 (v2022.01.01) |
| Jul 8, 2022 | 10.05% (0.10052) | 94.21th | v2 (v2022.01.01) |
| Apr 1, 2022 | 9.80% (0.09801) | 93.83th | v2 (v2022.01.01) |
| Feb 4, 2022 | 9.80% (0.09801) | 87.26th | v2 (v2022.01.01) |
| Feb 3, 2022 | 6.17% (0.06170) | 81.36th | v1 |
| Jan 6, 2022 | 6.17% (0.06170) | 81.17th | v1 |
| Sep 1, 2021 | 6.17% (0.06170) | 89.57th | v1 |
| Apr 14, 2021 | 6.17% (0.06170) | 0.00th | v1 |
References (19)
- http://blog.rubygems.org/2017/10/09/2.6.14-released.html x_refsource_MISCVendor Advisory
- http://blog.rubygems.org/2017/10/09/unsafe-object-deserialization-vulnerability.html x_refsource_MISCVendor Advisory
- http://www.securityfocus.com/bid/101275 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2017:3485 vendor-advisoryx_refsource_REDHATThird Party Advisory
- 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:0585 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2017-0903 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1500488 Issue Tracking
- https://github.com/advisories/GHSA-mqwr-4qf2-2hcv Advisory
- https://github.com/rubygems/rubygems/commit/510b1638ac9bba3ceb7a5d73135dafff9e5bab49 x_refsource_MISCPatchThird Party Advisory
- https://hackerone.com/reports/274990 x_refsource_MISCThird 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-0903
- https://usn.ubuntu.com/3553-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3685-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://web.archive.org/web/20200227143351/http://www.securityfocus.com/bid/101275
- https://www.cve.org/CVERecord?id=CVE-2017-0903
- https://www.debian.org/security/2017/dsa-4031 vendor-advisoryx_refsource_DEBIANThird Party Advisory
Change history (0)
No recorded changes yet.