
CVE-2025-27788 – Ruby JSON Parser has Out-of-bounds Read
https://notcve.org/view.php?id=CVE-2025-27788
12 Mar 2025 — JSON is a JSON implementation for Ruby. Starting in version 2.10.0 and prior to version 2.10.2, a specially crafted document could cause an out of bound read, most likely resulting in a crash. Versions prior to 2.10.0 are not vulnerable. Version 2.10.2 fixes the problem. No known workarounds are available. • https://github.com/ruby/json/commit/c56db31f800d5d508389793e69682f99749dbadf • CWE-125: Out-of-bounds Read •

CVE-2025-27221 – Ubuntu Security Notice USN-7418-1
https://notcve.org/view.php?id=CVE-2025-27221
03 Mar 2025 — In the URI gem before 1.0.3 for Ruby, the URI handling methods (URI.join, URI#merge, URI#+) have an inadvertent leakage of authentication credentials because userinfo is retained even after changing the host. It was discovered that Ruby incorrectly handled parsing of an XML document that has specific XML characters in an attribute value using REXML gem. An attacker could use this issue to cause Ruby to crash, resulting in a denial of service. This issue only affected in Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, a... • https://github.com/rubysec/ruby-advisory-db/blob/master/gems/uri/CVE-2025-27221.yml • CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer •

CVE-2025-27219 – Ubuntu Security Notice USN-7418-1
https://notcve.org/view.php?id=CVE-2025-27219
03 Mar 2025 — 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. It was discovered that Ruby incorrectly handled parsing of an XML document that has specific XML characters in an attribute value using REXML gem. An attacker could use this issue t... • https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27219.yml • CWE-770: Allocation of Resources Without Limits or Throttling •

CVE-2025-27220 – Ubuntu Security Notice USN-7418-1
https://notcve.org/view.php?id=CVE-2025-27220
03 Mar 2025 — In the CGI gem before 0.4.2 for Ruby, a Regular Expression Denial of Service (ReDoS) vulnerability exists in the Util#escapeElement method. It was discovered that Ruby incorrectly handled parsing of an XML document that has specific XML characters in an attribute value using REXML gem. An attacker could use this issue to cause Ruby to crash, resulting in a denial of service. This issue only affected in Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, and Ubuntu 24.10. It was discovered that Ruby incorrectly handled expa... • https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cgi/CVE-2025-27220.yml • CWE-1333: Inefficient Regular Expression Complexity •

CVE-2025-25186 – Net::IMAP vulnerable to possible DoS by memory exhaustion
https://notcve.org/view.php?id=CVE-2025-25186
10 Feb 2025 — Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Starting in version 0.3.2 and prior to versions 0.3.8, 0.4.19, and 0.5.6, there is a possibility for denial of service by memory exhaustion in `net-imap`'s response parser. At any time while the client is connected, a malicious server can send can send highly compressed `uid-set` data which is automatically read by the client's receiver thread. The response parser uses `Range#to_a` to convert the `uid-set` data into a... • https://github.com/ruby/net-imap/commit/70e3ddd071a94e450b3238570af482c296380b35 • CWE-400: Uncontrolled Resource Consumption CWE-405: Asymmetric Resource Consumption (Amplification) CWE-409: Improper Handling of Highly Compressed Data (Data Amplification) CWE-770: Allocation of Resources Without Limits or Throttling CWE-789: Memory Allocation with Excessive Size Value CWE-1287: Improper Validation of Specified Type of Input •

CVE-2024-49761 – REXML ReDoS vulnerability
https://notcve.org/view.php?id=CVE-2024-49761
28 Oct 2024 — REXML is an XML toolkit for Ruby. The REXML gem before 3.3.9 has a ReDoS vulnerability when it parses an XML that has many digits between &# and x...; in a hex numeric character reference (&#x...;). This does not happen with Ruby 3.2 or later. Ruby 3.1 is the only affected maintained Ruby. The REXML gem 3.3.9 or later include the patch to fix the vulnerability. • https://github.com/ruby/rexml/commit/ce59f2eb1aeb371fe1643414f06618dbe031979f • CWE-1333: Inefficient Regular Expression Complexity •

CVE-2024-47220 – WEBrick: HTTP request smuggling
https://notcve.org/view.php?id=CVE-2024-47220
22 Sep 2024 — An issue was discovered in the WEBrick toolkit through 1.8.1 for Ruby. It allows HTTP request smuggling by providing both a Content-Length header and a Transfer-Encoding header, e.g., "GET /admin HTTP/1.1\r\n" inside of a "POST /user HTTP/1.1\r\n" request. NOTE: the supplier's position is "Webrick should not be used in production." A flaw was found in the webrick toolkit. This issue occurs because the server incorrectly handles requests with both Content-Length and Transfer-Encoding headers. • https://github.com/ruby/webrick/issues/145 • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') •

CVE-2024-43398 – REXML denial of service vulnerability
https://notcve.org/view.php?id=CVE-2024-43398
22 Aug 2024 — REXML is an XML toolkit for Ruby. The REXML gem before 3.3.6 has a DoS vulnerability when it parses an XML that has many deep elements that have same local name attributes. If you need to parse untrusted XMLs with tree parser API like REXML::Document.new, you may be impacted to this vulnerability. If you use other parser APIs such as stream parser API and SAX2 parser API, this vulnerability is not affected. The REXML gem 3.3.6 or later include the patch to fix the vulnerability. • https://github.com/ruby/rexml/releases/tag/v3.3.6 • CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') •

CVE-2024-41946 – REXML DoS vulnerability
https://notcve.org/view.php?id=CVE-2024-41946
01 Aug 2024 — REXML is an XML toolkit for Ruby. The REXML gem 3.3.2 has a DoS vulnerability when it parses an XML that has many entity expansions with SAX2 or pull parser API. The REXML gem 3.3.3 or later include the patch to fix the vulnerability. A flaw was found in the REXML package. Reading an XML file that contains many entity expansions may lead to a denial of service due to resource starvation. • https://github.com/ruby/rexml/commit/033d1909a8f259d5a7c53681bcaf14f13bcf0368 • CWE-400: Uncontrolled Resource Consumption •

CVE-2024-41123 – REXML DoS vulnerability
https://notcve.org/view.php?id=CVE-2024-41123
01 Aug 2024 — REXML is an XML toolkit for Ruby. The REXML gem before 3.3.2 has some DoS vulnerabilities when it parses an XML that has many specific characters such as whitespace character, `>]` and `]>`. The REXML gem 3.3.3 or later include the patches to fix these vulnerabilities. A vulnerability was found in REXML, an XML toolkit used for Ruby. When parsing an untrusted XML with many specific characters, the REXML gem may take a long time, leading to a denial of service condition. • https://github.com/ruby/rexml/security/advisories/GHSA-4xqq-m2hx-25v8 • CWE-400: Uncontrolled Resource Consumption •