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

# Ruby cgi vulnerabilities

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

- **Published CVEs:** 5
- **In CISA KEV:** 0
- **With a public exploit:** 3
- **With a patch:** 5
- **Average CVSS:** 7.7
- **First CVE:** 2022-01-01
- **Latest CVE:** 2025-03-03
- **Ecosystems:** gem

## Severity breakdown

| Severity | CVEs |
| --- | --- |
| Critical | 1 |
| High | 2 |
| Medium | 2 |
| Low | 0 |
| Unscored | 0 |

## Most common weakness types

| CWE | Name | CVEs |
| --- | --- | --- |
| [CWE-1333](https://radicalnotion.ai/cwe/cwe-1333) | Inefficient Regular Expression Complexity | 1 |
| [CWE-190](https://radicalnotion.ai/cwe/cwe-190) | Integer Overflow or Wraparound | 1 |
| [CWE-565](https://radicalnotion.ai/cwe/cwe-565) | Reliance on Cookies without Validation and Integrity Checking | 1 |
| [CWE-74](https://radicalnotion.ai/cwe/cwe-74) | Improper Neutralization of Special Elements in Output Used by a Downstream Component | 1 |
| [CWE-770](https://radicalnotion.ai/cwe/cwe-770) | Allocation of Resources Without Limits or Throttling | 1 |

## CVEs by year

| Year | CVEs published |
| --- | --- |
| 2022 | 3 |
| 2023 | 0 |
| 2024 | 0 |
| 2025 | 2 |

## Affected versions (top 18 of 21)

| Version | Kind | CVEs |
| --- | --- | --- |
| 0.1.0 | exact | 5 |
| 0.2.0 | exact | 4 |
| 0.3.0 | exact | 4 |
| 0.3.1 | exact | 3 |
| 0.3.2 | exact | 3 |
| 0.3.3 | exact | 3 |
| 0.3.4 | exact | 3 |
| 0.3.5 | exact | 2 |
| 0.3.6 | exact | 2 |
| 0.4.0 | exact | 2 |
| 0.4.1 | exact | 2 |
| 0.4.2.beta1 | exact | 2 |
| \< 0.1.0.1 | range | 2 |
| \< 0.3.5.1 | range | 2 |
| 0.2.0 \<= v \< 0.2.1 | range | 2 |
| 0.3.0 \<= v \< 0.3.1 | range | 2 |
| 0.3.6 \<= v \< 0.3.7 | range | 2 |
| 0.4.0 \<= v \< 0.4.2 | range | 2 |

## Fixed in

| Version | CVEs |
| --- | --- |
| 0.1.0.1 | 2 |
| 0.2.1 | 2 |
| 0.3.1 | 2 |
| 0.3.5.1 | 2 |
| 0.3.7 | 2 |
| 0.4.2 | 2 |

## CVEs

| CVE | Title | Severity | CVSS | CISA KEV | Public exploit | Patch |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-27220 | CGI has Regular Expression Denial of Service (ReDoS) potential in Util#escapeElement | medium | 6.3 | No | No | Yes |
| CVE-2025-27219 | CGI has Denial of Service (DoS) potential in Cookie.parse | medium | 6.3 | No | No | Yes |
| CVE-2021-33621 | HTTP response splitting in CGI | high | 8.8 | No | Yes | Yes |
| CVE-2021-41816 | Buffer overrun in CGI.escape\_html | critical | 9.8 | No | Yes | Yes |
| CVE-2021-41819 | Cookie Prefix Spoofing in CGI::Cookie.parse | high | 7.5 | No | Yes | Yes |

## Frequently asked questions

### How many CVEs does Ruby cgi have?

Ruby cgi has 5 published CVE records since 2022.

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

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

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

Yes — 3 of Ruby cgi's CVEs have a known public exploit.

### Which versions of Ruby cgi are affected?

27 distinct Ruby cgi 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 cgi CVEs?

Ruby cgi's CVEs most often map to these CWE weakness types: CWE-1333 (Inefficient Regular Expression Complexity), CWE-190 (Integer Overflow or Wraparound), CWE-565 (Reliance on Cookies without Validation and Integrity Checking), CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component).

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

Ruby cgi has 1 critical and 2 high-severity CVEs.

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

The average CVSS base score across Ruby cgi's scored CVEs is 7.7.

## Other products from this vendor

- [Ruby](https://radicalnotion.ai/vendor/ruby/ruby) (47 CVEs)
- [rubygems](https://radicalnotion.ai/vendor/ruby/rubygems) (23 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)
- [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/cgi). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
