CVE-2017-0903
RubyGems vulnerable to Deserialization of Untrusted Data
Reported by hackerone · Published October 11, 2017
rubygems-update is fixed in 2.6.14 and 2.6.13 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rubygems-update | RubyGems | 2.6.14, 2.6.13 |
| ruby2.0 | Ubuntu:14.04:LTS | 2.0.0.484-1ubuntu2.10 |
| ruby2.3 | Ubuntu:16.04:LTS | 2.3.1-2~16.04.6 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| HackerOne | RubyGems | Versions >= 2.0.0 |
| RubyGems | rubygems-update | 2.0.0 |
| HackerOne | RubyGems | Versions >= 2.0.0 |
Timeline
- Oct 10, 2017 PoC Published (2 in total, the first dated here)
- Oct 11, 2017 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 5, 2026 Distribution Patch (8 in total, the first dated here)
- Mar 5, 2026 Security Advisory (9 in total, the first dated here)
- Oct 5, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-0903
vulnetix vdb fixes CVE-2017-0903
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-0903/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- USN-3685-1 vendor-advisoryx_refsource_UBUNTU
- USN-3553-1 vendor-advisoryx_refsource_UBUNTU
- RHSA-2018:0585 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:0378 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- DSA-4031 vendor-advisoryx_refsource_DEBIAN
- x_refsource_MISC
- RHSA-2017:3485 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- [debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update mailing-listx_refsource_MLIST
- RHSA-2018:0583 vendor-advisoryx_refsource_REDHAT
- 101275 vdb-entryx_refsource_BID
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2017-0903 advisory