---
title: "ruby-lang CGI vulnerabilities and CVEs"
url: https://radicalnotion.ai/vendor/rubylang/cgi
type: product
description: "ruby-lang 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-lang CGI vulnerabilities

Vendor: [ruby-lang](https://radicalnotion.ai/vendor/rubylang)

- **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
- **Platforms:** ruby

## 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 ('Injection') | 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 19 of 20)

| Version | Kind | CVEs |
| --- | --- | --- |
| \< 0.3.5.1 | range | 2 |
| 0.3.6 | range | 2 |
| 0.3.6 \<= v \< 0.3.7 | range | 2 |
| 0.4.0 \<= v \< 0.4.2 | range | 2 |
| \< 0.1.0.2 | range | 1 |
| \< 0.3.1 | range | 1 |
| \<= 0.1.0 | range | 1 |
| \<= 0.2.0 | range | 1 |
| 0.1.0 | range | 1 |
| 0.2.0 | range | 1 |
| 0.2.0 \<= v \< 0.2.2 | range | 1 |
| 0.3.0 | range | 1 |
| 0.3.5.1 | patched | 2 |
| 0.3.7 | patched | 2 |
| 0.4.2 | patched | 2 |
| 0.1.0.2 | patched | 1 |
| 0.2.2 | patched | 1 |
| 0.3.1 | patched | 1 |
| 0.3.5 | patched | 1 |

## 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-lang CGI have?

ruby-lang CGI has 5 published CVE records since 2022.

### How many ruby-lang CGI CVEs are in CISA KEV?

None of ruby-lang CGI's CVEs are currently listed in CISA's Known Exploited Vulnerabilities catalog.

### Are there public exploits for ruby-lang CGI vulnerabilities?

Yes — 3 of ruby-lang CGI's CVEs have a known public exploit.

### Which versions of ruby-lang CGI are affected?

20 distinct ruby-lang 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-lang CGI CVEs?

ruby-lang 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 ('Injection')).

### How many critical ruby-lang CGI vulnerabilities are there?

ruby-lang CGI has 1 critical and 2 high-severity CVEs.

### What is the average severity of ruby-lang CGI CVEs?

The average CVSS base score across ruby-lang CGI's scored CVEs is 7.7.

## Other products from this vendor

- [Ruby](https://radicalnotion.ai/vendor/rubylang/ruby) (115 CVEs)
- [rexml](https://radicalnotion.ai/vendor/rubylang/rexml) (8 CVEs)
- [net::imap](https://radicalnotion.ai/vendor/rubylang/net-imap) (6 CVEs)
- [webrick](https://radicalnotion.ai/vendor/rubylang/webrick) (5 CVEs)
- [URI](https://radicalnotion.ai/vendor/rubylang/uri) (4 CVEs)
- [openssl](https://radicalnotion.ai/vendor/rubylang/openssl) (2 CVEs)
- [rdoc](https://radicalnotion.ai/vendor/rubylang/rdoc) (2 CVEs)
- [date](https://radicalnotion.ai/vendor/rubylang/date) (1 CVEs)

---

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