cbcvebase.

Ruby-Lang Cgi vulnerabilities

5 known vulnerabilities affecting ruby-lang/cgi.

Total CVEs
5
CISA KEV
0
Public exploits
0
Exploited in wild
0
Severity breakdown
CRITICAL1HIGH4

Vulnerabilities

Page 1 of 1
CVE-2021-41816P3CRITICALCVSS 9.8fixed in 0.3.1≤ 0.2.0+1 more2022-02-06
CVE-2021-41816 [CRITICAL] CWE-190 CVE-2021-41816: CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buff CGI.escape_html in Ruby before 2.7.5 and 3.x before 3.0.3 has an integer overflow and resultant buffer overflow via a long string on platforms (such as Windows) where size_t and long have different numbers of bytes. This also affects the CGI gem before 0.3.1 for Ruby.
ghsanvdosv
CVE-2021-33621P3HIGHCVSS 8.8fixed in 0.1.0.2≥ 0.2.0, < 0.2.2+1 more2022-11-18
CVE-2021-33621 [HIGH] CWE-74 CVE-2021-33621: The cgi gem before 0.1.0.2, 0.2.x before 0.2.2, and 0.3.x before 0.3.5 for Ruby allows HTTP response The cgi gem before 0.1.0.2, 0.2.x before 0.2.2, and 0.3.x before 0.3.5 for Ruby allows HTTP response splitting. This is relevant to applications that use untrusted user input either to generate an HTTP response or to create a CGI::Cookie object.
ghsanvdosv
CVE-2021-41819P3HIGHCVSS 7.5v0.1.0v0.2.0+1 more2022-01-01
CVE-2021-41819 [HIGH] CWE-565 CVE-2021-41819: CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names. This also affe CGI::Cookie.parse in Ruby through 2.6.8 mishandles security prefixes in cookie names. This also affects the CGI gem through 0.3.0 for Ruby.
ghsanvdosv
CVE-2025-27219P3HIGHCVSS 7.5fixed in 0.3.5.1≥ 0.4.0, < 0.4.2+2 more2025-03-04
CVE-2025-27219 [HIGH] CWE-770 CVE-2025-27219: In the CGI gem before 0.4.2 for Ruby, the CGI::Cookie.parse method in the CGI library contains a pot In the CGI gem before 0.4.2 for Ruby, the CGI::Cookie.parse method in the CGI library contains a potential Denial of Service (DoS) vulnerability. The method does not impose any limit on the length of the raw cookie value it processes. This oversight can lead to excessive resource consumption when parsing extremely large cookies.
ghsanvdosv
CVE-2025-27220P3HIGHCVSS 7.5fixed in 0.3.5.1≥ 0.4.0, < 0.4.2+2 more2025-03-04
CVE-2025-27220 [HIGH] CWE-1333 CVE-2025-27220: In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability e In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method.
ghsanvdosv
Ruby-Lang Cgi vulnerabilities | cvebase