CVE-2017-0899: Code Injection

Published Aug 31, 2017
·
Updated

Last updated 24 July 2024

Other sources

RubyGems version 2.6.12 and earlier is vulnerable to maliciously crafted gem specifications that include terminal escape characters. Printing the gem specification would execute terminal escape sequences.

Upstream patches:

https://github.com/rubygems/rubygems/commit/1bcbc7fe637b03145401ec9c094066285934a7f1 https://github.com/rubygems/rubygems/commit/ef0aa611effb5f54d40c7fba6e8235eb43c5a491

Bug report:

https://hackerone.com/reports/226335

External References:

http://blog.rubygems.org/2017/08/27/2.6.13-released.html

Red Hat

Affected Software

18 affected componentsFixes available
redhat/rubygems<2.6.13
2.6.13
redhat/ruby<2.4.2
2.4.2
redhat/ruby<2.2.8
2.2.8
redhat/ruby<2.3.5
2.3.5
Rubygems RubyGems<=2.6.12
Debian Debian Linux=8.0
Debian Debian Linux=9.0
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.3.15-23.6.7-2

Event History

Aug 31, 2017
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
DescriptionWeakness
Jan 11, 2024
Data Sourced
via Launchpad·10:23 PM
Description
Sep 24, 2024
Data Sourced
via Ubuntu·01:18 AM
RemedyDescriptionSeverityAffected Software
Mar 31, 2025
Data Sourced
via Debian·03:28 AM
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 CVE-2017-0899?

CVE-2017-0899 refers to a vulnerability in RubyGems version 2.6.12 and earlier that allows maliciously crafted gem specifications to execute terminal escape sequences.

2

How severe is the vulnerability CVE-2017-0899?

The severity of vulnerability CVE-2017-0899 is critical with a severity score of 9.8.

3

Which software versions are affected by CVE-2017-0899?

RubyGems version 2.6.12 and earlier are affected by CVE-2017-0899.

4

How can I fix the vulnerability CVE-2017-0899?

To fix the vulnerability CVE-2017-0899, update RubyGems to version 2.6.13 or later.

5

Where can I find more information about CVE-2017-0899?

You can find more information about CVE-2017-0899 in the references provided: [http://blog.rubygems.org/2017/08/27/2.6.13-released.html](http://blog.rubygems.org/2017/08/27/2.6.13-released.html), [https://github.com/rubygems/rubygems/commit/1bcbc7fe637b03145401ec9c094066285934a7f1](https://github.com/rubygems/rubygems/commit/1bcbc7fe637b03145401ec9c094066285934a7f1), [https://github.com/rubygems/rubygems/commit/ef0aa611effb5f54d40c7fba6e8235eb43c5a491](https://github.com/rubygems/rubygems/commit/ef0aa611effb5f54d40c7fba6e8235eb43c5a491).

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