CVE-2017-0899 · hackerone
CVE-2017-0899
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.
Published 2017-08-31, last changed 2026-06-17. Weakness: CWE-150, CWE-94.
How to fix
Upgrade to a fixed version: rubygems-update 2.6.13 (RubyGems). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in rubygems/rubygems by 1bcbc7fe63, ef0aa611ef, 1bcbc7fe63. Functions changed by the fix: clean_text, output_versions, format_text. Regression tests: test/rubygems/test_gem_commands_query_command.rb, test/rubygems/test_gem_text.rb. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2017-08-31 | Published |
| 2022-05-13 | Package advisory GHSA-7gcp-2gmq-w3xh |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 11.1% |
| 2026-12-01 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-7gcp-2gmq-w3xh | rubygems-update (RubyGems) | 2.6.13 |
Also known as: GHSA-7gcp-2gmq-w3xh
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2019-8323 | 2019-06-17 | 7.5 | same package: rubygems-update (RubyGems) |
| CVE-2019-8322 | 2019-06-17 | 7.5 | same package: rubygems-update (RubyGems) |
| CVE-2019-8321 | 2019-06-17 | 7.5 | same package: rubygems-update (RubyGems) |
| CVE-2019-8325 | 2019-06-17 | 7.5 | same package: rubygems-update (RubyGems) |
| CVE-2019-8324 | 2019-06-17 | 8.8 | same package: rubygems-update (RubyGems) |
| CVE-2019-8320 | 2019-06-06 | 7.4 | same package: rubygems-update (RubyGems) |
| CVE-2018-1000079 | 2018-03-13 | 5.5 | same package: rubygems-update (RubyGems) |
| CVE-2018-1000078 | 2018-03-13 | 6.1 | same package: rubygems-update (RubyGems) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-0899, or call /api/v1/vulnerabilities/CVE-2017-0899. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.