---
title: "Ruby rubygems vulnerabilities and CVEs"
url: https://radicalnotion.ai/vendor/ruby/rubygems
type: product
description: "Ruby rubygems has 22 published CVEs, 0 in CISA KEV and 8 with public exploits."
updated: 2021-12-08
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# Ruby rubygems vulnerabilities

Vendor: [Ruby](https://radicalnotion.ai/vendor/ruby)

- **Published CVEs:** 22
- **In CISA KEV:** 0
- **With a public exploit:** 8
- **With a patch:** 22
- **Average CVSS:** 7.8
- **First CVE:** 2016-12-22
- **Latest CVE:** 2021-12-08

## Severity breakdown

| Severity | CVEs |
| --- | --- |
| Critical | 4 |
| High | 15 |
| Medium | 3 |
| Low | 0 |
| Unscored | 0 |

## Most common weakness types

| CWE | Name | CVEs |
| --- | --- | --- |
| [CWE-22](https://radicalnotion.ai/cwe/cwe-22) | Improper Limitation of a Pathname to a Restricted Directory | 3 |
| [CWE-74](https://radicalnotion.ai/cwe/cwe-74) | Improper Neutralization of Special Elements in Output Used by a Downstream Component | 3 |
| [CWE-94](https://radicalnotion.ai/cwe/cwe-94) | Improper Control of Generation of Code | 2 |
| [CWE-20](https://radicalnotion.ai/cwe/cwe-20) | Improper Input Validation | 2 |
| [CWE-502](https://radicalnotion.ai/cwe/cwe-502) | Deserialization of Untrusted Data | 2 |
| [CWE-88](https://radicalnotion.ai/cwe/cwe-88) | Improper Neutralization of Argument Delimiters in a Command | 2 |
| [CWE-494](https://radicalnotion.ai/cwe/cwe-494) | Download of Code Without Integrity Check | 1 |
| [CWE-150](https://radicalnotion.ai/cwe/cwe-150) | Improper Neutralization of Escape, Meta, or Control Sequences | 1 |

## CVEs by year

| Year | CVEs published |
| --- | --- |
| 2016 | 1 |
| 2017 | 5 |
| 2018 | 7 |
| 2019 | 6 |
| 2020 | 1 |
| 2021 | 2 |

## Affected versions (top 12 of 298)

| Version | Kind | CVEs |
| --- | --- | --- |
| 1.5.0 | exact | 14 |
| 1.5.1 | exact | 14 |
| 1.5.2 | exact | 14 |
| 1.6.0 | exact | 14 |
| 1.6.1 | exact | 14 |
| 1.6.2 | exact | 14 |
| 1.7.0 | exact | 14 |
| 1.7.1 | exact | 14 |
| 1.8.0 | exact | 14 |
| 1.8.1 | exact | 14 |
| 1.8.2 | exact | 14 |
| 2.0.0 | exact | 14 |

## CVEs

| CVE | Title | Severity | CVSS | CISA KEV | Public exploit | Patch |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2021-43809 | Local Code Execution through Argument Injection via dash leading git url parameter in Gemfile | high | 7.3 | No | Yes | Yes |
| CVE-2020-36327 | Dependency Confusion in Bundler | high | 8.8 | No | Yes | Yes |
| CVE-2019-3881 | Insecure path handling in Bundler | high | 7.8 | No | No | Yes |
| CVE-2019-8321 | RubyGems Escape sequence injection vulnerability in verbose | high | 7.5 | No | No | Yes |
| CVE-2019-8322 | RubyGems Escape sequence injection vulnerability in gem owner | high | 7.5 | No | No | Yes |
| CVE-2019-8323 | RubyGems Escape sequence injection vulnerability in api response handling | high | 7.5 | No | No | Yes |
| CVE-2019-8325 | RubyGems Escape sequence injection in errors | high | 7.5 | No | No | Yes |
| CVE-2019-8324 | Code injection in RubyGems | high | 8.8 | No | No | Yes |
| CVE-2019-8320 | RubyGems Delete directory using symlink when decompressing tar | high | 7.4 | No | Yes | Yes |
| CVE-2018-1000079 | RubyGems Path Traversal vulnerability | medium | 5.5 | No | No | Yes |
| CVE-2018-1000078 | RubyGems Cross-site Scripting vulnerability | medium | 6.1 | No | No | Yes |
| CVE-2018-1000077 | RubyGems Improper Input Validation vulnerability | medium | 5.3 | No | No | Yes |
| CVE-2018-1000076 | RubyGems Improper Verification of Cryptographic Signature vulnerability | critical | 9.8 | No | No | Yes |
| CVE-2018-1000075 | RubyGems Infinite Loop vulnerability | high | 7.5 | No | No | Yes |
| CVE-2018-1000074 | RubyGems Deserialization of Untrusted Data vulnerability | high | 7.8 | No | No | Yes |
| CVE-2018-1000073 | RubyGems Link Following vulnerability | high | 7.5 | No | No | Yes |
| CVE-2017-0903 | RubyGems vulnerable to Deserialization of Untrusted Data | critical | 9.8 | No | No | Yes |
| CVE-2017-0902 | RubyGems has Origin Validation Error vulnerability | high | 8.1 | No | Yes | Yes |
| CVE-2017-0901 | RubyGems may allow a maliciously crafted gem to overwrite files | high | 7.5 | No | Yes | Yes |
| CVE-2017-0900 | RubyGems Improper Input Validation vulnerability | high | 7.5 | No | Yes | Yes |
| CVE-2017-0899 | RubyGems Code Injection vulnerability | critical | 9.8 | No | Yes | Yes |
| CVE-2016-7954 | Bundler allows attacker to inject arbitrary code via secondary Gem source | critical | 9.8 | No | Yes | Yes |

## Frequently asked questions

### How many CVEs does Ruby rubygems have?

Ruby rubygems has 22 published CVE records since 2016.

### How many Ruby rubygems CVEs are in CISA KEV?

None of Ruby rubygems's CVEs are currently listed in CISA's Known Exploited Vulnerabilities catalog.

### Are there public exploits for Ruby rubygems vulnerabilities?

Yes — 8 of Ruby rubygems's CVEs have a known public exploit.

### Which versions of Ruby rubygems are affected?

298 distinct Ruby rubygems versions are named across its CVEs. Use the version filter above to see the CVEs affecting a specific version.

### What are the most common weakness types in Ruby rubygems CVEs?

Ruby rubygems's CVEs most often map to these CWE weakness types: CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), CWE-94 (Improper Control of Generation of Code), CWE-20 (Improper Input Validation).

### How many critical Ruby rubygems vulnerabilities are there?

Ruby rubygems has 4 critical and 15 high-severity CVEs.

### What is the average severity of Ruby rubygems CVEs?

The average CVSS base score across Ruby rubygems's scored CVEs is 7.8.

## Other products from this vendor

- [Ruby](https://radicalnotion.ai/vendor/ruby/ruby) (47 CVEs)
- [net-imap](https://radicalnotion.ai/vendor/ruby/net-imap) (10 CVEs)
- [rexml](https://radicalnotion.ai/vendor/ruby/rexml) (9 CVEs)
- [WEBrick](https://radicalnotion.ai/vendor/ruby/webrick) (7 CVEs)
- [json](https://radicalnotion.ai/vendor/ruby/json) (6 CVEs)
- [cgi](https://radicalnotion.ai/vendor/ruby/cgi) (5 CVEs)
- [uri](https://radicalnotion.ai/vendor/ruby/uri) (4 CVEs)
- [openssl](https://radicalnotion.ai/vendor/ruby/openssl) (3 CVEs)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/vendor/ruby/rubygems). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
