CARVIEW |
Select Language
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
x-origin-cache: HIT
last-modified: Fri, 01 Aug 2025 01:17:08 GMT
access-control-allow-origin: *
etag: W/"688c1594-1de2"
expires: Fri, 01 Aug 2025 10:25:25 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: F362:4ED44:163614:19E9E7:688C93BB
accept-ranges: bytes
age: 0
date: Fri, 01 Aug 2025 10:15:25 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210098-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1754043325.946912,VS0,VE222
vary: Accept-Encoding
x-fastly-request-id: bdc68893f666f8ddd4ec6cb516bbdbab1cf85155
content-length: 2680
Multiple vulnerabilities in RubyGems
Multiple vulnerabilities in RubyGems
Posted by usa on 29 Aug 2017
There are multiple vulnerabilities in RubyGems bundled by Ruby. It is reported at the official blog of RubyGems.
Details
The following vulnerabilities have been reported.
- a DNS request hijacking vulnerability. (CVE-2017-0902)
- an ANSI escape sequence vulnerability. (CVE-2017-0899)
- a DoS vulnerability in the query command. (CVE-2017-0900)
- a vulnerability in the gem installer that allowed a malicious gem to overwrite arbitrary files. (CVE-2017-0901)
It is strongly recommended for Ruby users to upgrade or take one of the following workarounds as soon as possible.
Affected Versions
- Ruby 2.2 series: 2.2.7 and earlier
- Ruby 2.3 series: 2.3.4 and earlier
- Ruby 2.4 series: 2.4.1 and earlier
- prior to trunk revision 59672
Workarounds
If you can’t upgrade Ruby itself, upgrade RubyGems to the latest version. RubyGems 2.6.13 or later includes the fix for the vulnerabilities.
gem update --system
If you can’t upgrade RubyGems, you can apply the following patches as a workaround.
- for Ruby 2.2.7
- for Ruby 2.3.4
- for Ruby 2.4.1: need 2 patches. Apply sequentially as follows:
About the trunk, update to the latest revision.
Credits
This report is based on the official blog of RubyGems.
History
- Originally published at 2017-08-29 12:00:00 UTC
- Added CVE numbers at 2017-08-31 2:00:00 UTC
- Mention about upgrading Rubies at 2017-09-15 12:00:00 UTC