CVE-2017-0903: Critical severity Rubygems RubyGems vulnerability

Published Oct 10, 2017
·
Updated

Last updated 18 August 2025

Other sources

RubyGems version 2.0.0 to 2.6.13 is vulnerable to an unsafe object deserialization through a specially crafted YAML formatted gem specification that could lead to a remote code execution when parsed without safegards. Applications that process Gems on the server are impacted but not if rubygems is only used as a client.

References:

http://www.openwall.com/lists/oss-security/2017/10/10/2

Red Hat

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.

Launchpad

Affected Software

89 affected componentsFixes available
redhat/rubygems<2.6.14
2.6.14
Rubygems RubyGems=2.0.0
Rubygems RubyGems=2.0.0-preview2
Rubygems RubyGems=2.0.0-preview2.1
Rubygems RubyGems=2.0.0-preview2.2
Rubygems RubyGems=2.0.0-rc1
Rubygems RubyGems=2.0.0-rc2
Rubygems RubyGems=2.0.1
Rubygems RubyGems=2.0.2
Rubygems RubyGems=2.0.3
Rubygems RubyGems=2.0.4
Rubygems RubyGems=2.0.5
Rubygems RubyGems=2.0.6
Rubygems RubyGems=2.0.7
Rubygems RubyGems=2.0.8
Rubygems RubyGems=2.0.9
Rubygems RubyGems=2.0.10
Rubygems RubyGems=2.0.11
Rubygems RubyGems=2.0.12
Rubygems RubyGems=2.0.13
Rubygems RubyGems=2.0.14
Rubygems RubyGems=2.0.15
Rubygems RubyGems=2.0.16
Rubygems RubyGems=2.0.17
Rubygems RubyGems=2.1.0
Rubygems RubyGems=2.1.0.rc.1
Rubygems RubyGems=2.1.0.rc.2
Rubygems RubyGems=2.1.1
Rubygems RubyGems=2.1.2
Rubygems RubyGems=2.1.3
Rubygems RubyGems=2.1.4
Rubygems RubyGems=2.1.5
Rubygems RubyGems=2.1.6
Rubygems RubyGems=2.1.7
Rubygems RubyGems=2.1.8
Rubygems RubyGems=2.1.9
Rubygems RubyGems=2.1.10
Rubygems RubyGems=2.1.11
Rubygems RubyGems=2.2.0
Rubygems RubyGems=2.2.0.preiew.1
Rubygems RubyGems=2.2.0.rc.1
Rubygems RubyGems=2.2.1
Rubygems RubyGems=2.2.2
Rubygems RubyGems=2.2.3
Rubygems RubyGems=2.2.4
Rubygems RubyGems=2.2.5
Rubygems RubyGems=2.3.0
Rubygems RubyGems=2.4.0
Rubygems RubyGems=2.4.1
Rubygems RubyGems=2.4.2
Rubygems RubyGems=2.4.3
Rubygems RubyGems=2.4.4
Rubygems RubyGems=2.4.5
Rubygems RubyGems=2.4.6
Rubygems RubyGems=2.4.7
Rubygems RubyGems=2.4.8
Rubygems RubyGems=2.5.0
Rubygems RubyGems=2.5.1
Rubygems RubyGems=2.5.2
Rubygems RubyGems=2.6.0
Rubygems RubyGems=2.6.1
Rubygems RubyGems=2.6.2
Rubygems RubyGems=2.6.3
Rubygems RubyGems=2.6.4
Rubygems RubyGems=2.6.5
Rubygems RubyGems=2.6.6
Rubygems RubyGems=2.6.7
Rubygems RubyGems=2.6.8
Rubygems RubyGems=2.6.9
Rubygems RubyGems=2.6.10
Rubygems RubyGems=2.6.11
Rubygems RubyGems=2.6.12
Rubygems RubyGems=2.6.13
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=7.4
redhat Enterprise Linux Server Aus=7.6
redhat Enterprise Linux Server Eus=7.4
redhat Enterprise Linux Server Eus=7.5
redhat Enterprise Linux Server Eus=7.6
redhat Enterprise Linux Server Tus=7.4
redhat Enterprise Linux Server Tus=7.6
redhat Enterprise Linux Workstation=7.0
debian/rubygems
3.2.5-23.2.5-2+deb11u13.3.15-2+deb12u13.6.7-2

Event History

Oct 11, 2017
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
DescriptionWeakness
Oct 20, 2017
Data Sourced
07:36 PM
SeverityAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:23 PM
Description
Feb 19, 2026
Data Sourced
via Ubuntu·07:39 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·07:40 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2017-0903?

CVE-2017-0903 is considered a high severity vulnerability due to the potential for remote code execution.

2

How do I fix CVE-2017-0903?

To fix CVE-2017-0903, upgrade RubyGems to version 2.6.14 or later.

3

Which versions of RubyGems are affected by CVE-2017-0903?

RubyGems versions 2.0.0 through 2.6.13 are affected by CVE-2017-0903.

4

What kinds of applications are impacted by CVE-2017-0903?

Applications that process Gems on the server side are impacted by CVE-2017-0903.

5

Is there a workaround for CVE-2017-0903?

There is no documented workaround for CVE-2017-0903 other than upgrading RubyGems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203