CVE-2017-0903
rubygems: Unsafe object deserialization through YAML formatted gem specifications
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
Las versiones de RubyGems entre la 2.0.0 y la 2.6.13 son vulnerables a una posible vulnerabilidad de ejecución remota de código. La deserialización YAML de especificaciones de gemas puede omitir listas blancas de clases. Es posible que se utilicen objetos serializados especialmente manipulados para escalar a ejecución remota de código.
A vulnerability was found where the rubygems module was vulnerable to an unsafe YAML deserialization when inspecting a gem. Applications inspecting gem files without installing them can be tricked to execute arbitrary code in the context of the ruby interpreter.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2016-11-30 CVE Reserved
- 2017-10-11 CVE Published
- 2023-12-07 EPSS Updated
- 2024-09-17 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-20: Improper Input Validation
- CWE-502: Deserialization of Untrusted Data
CAPEC
References (15)
URL | Tag | Source |
---|---|---|
http://www.securityfocus.com/bid/101275 | Third Party Advisory | |
https://hackerone.com/reports/274990 | Third Party Advisory | |
https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html | Mailing List |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/rubygems/rubygems/commit/510b1638ac9bba3ceb7a5d73135dafff9e5bab49 | 2019-10-09 |
URL | Date | SRC |
---|---|---|
http://blog.rubygems.org/2017/10/09/2.6.14-released.html | 2019-10-09 | |
http://blog.rubygems.org/2017/10/09/unsafe-object-deserialization-vulnerability.html | 2019-10-09 | |
https://access.redhat.com/errata/RHSA-2017:3485 | 2019-10-09 | |
https://access.redhat.com/errata/RHSA-2018:0378 | 2019-10-09 | |
https://access.redhat.com/errata/RHSA-2018:0583 | 2019-10-09 | |
https://access.redhat.com/errata/RHSA-2018:0585 | 2019-10-09 | |
https://usn.ubuntu.com/3553-1 | 2019-10-09 | |
https://usn.ubuntu.com/3685-1 | 2019-10-09 | |
https://www.debian.org/security/2017/dsa-4031 | 2019-10-09 | |
https://access.redhat.com/security/cve/CVE-2017-0903 | 2018-03-26 | |
https://bugzilla.redhat.com/show_bug.cgi?id=1500488 | 2018-03-26 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.0 Search vendor "Rubygems" for product "Rubygems" and version "2.0.0" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.0 Search vendor "Rubygems" for product "Rubygems" and version "2.0.0" | preview2 |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.0 Search vendor "Rubygems" for product "Rubygems" and version "2.0.0" | preview2.1 |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.0 Search vendor "Rubygems" for product "Rubygems" and version "2.0.0" | preview2.2 |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.0 Search vendor "Rubygems" for product "Rubygems" and version "2.0.0" | rc1 |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.0 Search vendor "Rubygems" for product "Rubygems" and version "2.0.0" | rc2 |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.1 Search vendor "Rubygems" for product "Rubygems" and version "2.0.1" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.2 Search vendor "Rubygems" for product "Rubygems" and version "2.0.2" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.3 Search vendor "Rubygems" for product "Rubygems" and version "2.0.3" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.4 Search vendor "Rubygems" for product "Rubygems" and version "2.0.4" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.5 Search vendor "Rubygems" for product "Rubygems" and version "2.0.5" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.6 Search vendor "Rubygems" for product "Rubygems" and version "2.0.6" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.7 Search vendor "Rubygems" for product "Rubygems" and version "2.0.7" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.8 Search vendor "Rubygems" for product "Rubygems" and version "2.0.8" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.9 Search vendor "Rubygems" for product "Rubygems" and version "2.0.9" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.10 Search vendor "Rubygems" for product "Rubygems" and version "2.0.10" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.11 Search vendor "Rubygems" for product "Rubygems" and version "2.0.11" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.12 Search vendor "Rubygems" for product "Rubygems" and version "2.0.12" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.13 Search vendor "Rubygems" for product "Rubygems" and version "2.0.13" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.14 Search vendor "Rubygems" for product "Rubygems" and version "2.0.14" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.15 Search vendor "Rubygems" for product "Rubygems" and version "2.0.15" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.16 Search vendor "Rubygems" for product "Rubygems" and version "2.0.16" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.0.17 Search vendor "Rubygems" for product "Rubygems" and version "2.0.17" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.0 Search vendor "Rubygems" for product "Rubygems" and version "2.1.0" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.0.rc.1 Search vendor "Rubygems" for product "Rubygems" and version "2.1.0.rc.1" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.0.rc.2 Search vendor "Rubygems" for product "Rubygems" and version "2.1.0.rc.2" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.1 Search vendor "Rubygems" for product "Rubygems" and version "2.1.1" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.2 Search vendor "Rubygems" for product "Rubygems" and version "2.1.2" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.3 Search vendor "Rubygems" for product "Rubygems" and version "2.1.3" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.4 Search vendor "Rubygems" for product "Rubygems" and version "2.1.4" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.5 Search vendor "Rubygems" for product "Rubygems" and version "2.1.5" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.6 Search vendor "Rubygems" for product "Rubygems" and version "2.1.6" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.7 Search vendor "Rubygems" for product "Rubygems" and version "2.1.7" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.8 Search vendor "Rubygems" for product "Rubygems" and version "2.1.8" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.9 Search vendor "Rubygems" for product "Rubygems" and version "2.1.9" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.10 Search vendor "Rubygems" for product "Rubygems" and version "2.1.10" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.1.11 Search vendor "Rubygems" for product "Rubygems" and version "2.1.11" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.2.0 Search vendor "Rubygems" for product "Rubygems" and version "2.2.0" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.2.0.preiew.1 Search vendor "Rubygems" for product "Rubygems" and version "2.2.0.preiew.1" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.2.0.rc.1 Search vendor "Rubygems" for product "Rubygems" and version "2.2.0.rc.1" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.2.1 Search vendor "Rubygems" for product "Rubygems" and version "2.2.1" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.2.2 Search vendor "Rubygems" for product "Rubygems" and version "2.2.2" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.2.3 Search vendor "Rubygems" for product "Rubygems" and version "2.2.3" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.2.4 Search vendor "Rubygems" for product "Rubygems" and version "2.2.4" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.2.5 Search vendor "Rubygems" for product "Rubygems" and version "2.2.5" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.3.0 Search vendor "Rubygems" for product "Rubygems" and version "2.3.0" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.4.0 Search vendor "Rubygems" for product "Rubygems" and version "2.4.0" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.4.1 Search vendor "Rubygems" for product "Rubygems" and version "2.4.1" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.4.2 Search vendor "Rubygems" for product "Rubygems" and version "2.4.2" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.4.3 Search vendor "Rubygems" for product "Rubygems" and version "2.4.3" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.4.4 Search vendor "Rubygems" for product "Rubygems" and version "2.4.4" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.4.5 Search vendor "Rubygems" for product "Rubygems" and version "2.4.5" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.4.6 Search vendor "Rubygems" for product "Rubygems" and version "2.4.6" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.4.7 Search vendor "Rubygems" for product "Rubygems" and version "2.4.7" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.4.8 Search vendor "Rubygems" for product "Rubygems" and version "2.4.8" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.5.0 Search vendor "Rubygems" for product "Rubygems" and version "2.5.0" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.5.1 Search vendor "Rubygems" for product "Rubygems" and version "2.5.1" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.5.2 Search vendor "Rubygems" for product "Rubygems" and version "2.5.2" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.0 Search vendor "Rubygems" for product "Rubygems" and version "2.6.0" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.1 Search vendor "Rubygems" for product "Rubygems" and version "2.6.1" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.2 Search vendor "Rubygems" for product "Rubygems" and version "2.6.2" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.3 Search vendor "Rubygems" for product "Rubygems" and version "2.6.3" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.4 Search vendor "Rubygems" for product "Rubygems" and version "2.6.4" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.5 Search vendor "Rubygems" for product "Rubygems" and version "2.6.5" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.6 Search vendor "Rubygems" for product "Rubygems" and version "2.6.6" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.7 Search vendor "Rubygems" for product "Rubygems" and version "2.6.7" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.8 Search vendor "Rubygems" for product "Rubygems" and version "2.6.8" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.9 Search vendor "Rubygems" for product "Rubygems" and version "2.6.9" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.10 Search vendor "Rubygems" for product "Rubygems" and version "2.6.10" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.11 Search vendor "Rubygems" for product "Rubygems" and version "2.6.11" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.12 Search vendor "Rubygems" for product "Rubygems" and version "2.6.12" | - |
Affected
| ||||||
Rubygems Search vendor "Rubygems" | Rubygems Search vendor "Rubygems" for product "Rubygems" | 2.6.13 Search vendor "Rubygems" for product "Rubygems" and version "2.6.13" | - |
Affected
| ||||||
Debian Search vendor "Debian" | Debian Linux Search vendor "Debian" for product "Debian Linux" | 8.0 Search vendor "Debian" for product "Debian Linux" and version "8.0" | - |
Affected
| ||||||
Debian Search vendor "Debian" | Debian Linux Search vendor "Debian" for product "Debian Linux" | 9.0 Search vendor "Debian" for product "Debian Linux" and version "9.0" | - |
Affected
| ||||||
Canonical Search vendor "Canonical" | Ubuntu Linux Search vendor "Canonical" for product "Ubuntu Linux" | 14.04 Search vendor "Canonical" for product "Ubuntu Linux" and version "14.04" | lts |
Affected
| ||||||
Canonical Search vendor "Canonical" | Ubuntu Linux Search vendor "Canonical" for product "Ubuntu Linux" | 16.04 Search vendor "Canonical" for product "Ubuntu Linux" and version "16.04" | lts |
Affected
| ||||||
Canonical Search vendor "Canonical" | Ubuntu Linux Search vendor "Canonical" for product "Ubuntu Linux" | 17.10 Search vendor "Canonical" for product "Ubuntu Linux" and version "17.10" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Desktop Search vendor "Redhat" for product "Enterprise Linux Desktop" | 7.0 Search vendor "Redhat" for product "Enterprise Linux Desktop" and version "7.0" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Server Search vendor "Redhat" for product "Enterprise Linux Server" | 7.0 Search vendor "Redhat" for product "Enterprise Linux Server" and version "7.0" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Server Aus Search vendor "Redhat" for product "Enterprise Linux Server Aus" | 7.4 Search vendor "Redhat" for product "Enterprise Linux Server Aus" and version "7.4" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Server Aus Search vendor "Redhat" for product "Enterprise Linux Server Aus" | 7.6 Search vendor "Redhat" for product "Enterprise Linux Server Aus" and version "7.6" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Server Eus Search vendor "Redhat" for product "Enterprise Linux Server Eus" | 7.4 Search vendor "Redhat" for product "Enterprise Linux Server Eus" and version "7.4" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Server Eus Search vendor "Redhat" for product "Enterprise Linux Server Eus" | 7.5 Search vendor "Redhat" for product "Enterprise Linux Server Eus" and version "7.5" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Server Eus Search vendor "Redhat" for product "Enterprise Linux Server Eus" | 7.6 Search vendor "Redhat" for product "Enterprise Linux Server Eus" and version "7.6" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Server Tus Search vendor "Redhat" for product "Enterprise Linux Server Tus" | 7.4 Search vendor "Redhat" for product "Enterprise Linux Server Tus" and version "7.4" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Server Tus Search vendor "Redhat" for product "Enterprise Linux Server Tus" | 7.6 Search vendor "Redhat" for product "Enterprise Linux Server Tus" and version "7.6" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Enterprise Linux Workstation Search vendor "Redhat" for product "Enterprise Linux Workstation" | 7.0 Search vendor "Redhat" for product "Enterprise Linux Workstation" and version "7.0" | - |
Affected
|