Ruby vulnerabilities, page 2
36 vulnerabilities
Known vulnerabilities in Ruby products, newest first, with CVSS severity, EPSS, KEV listings and ransomware use, across 10 products.
RoutineCVE-2025-43857ruby · net-imap +34 morenet-imap rubygem vulnerable to possible DoS by memory exhaustionNet::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5, there is a possibility for denial of service by memory exhaustion when net-imap reads server responses. At any time while the client is connected, a malicious server can send can send a "literal" byte count, which is automatically read by the client's receiver thread. The response reader immediately allocates memory for the number of bytes indicated by the server response. This should not be an issue when securely connecting to trusted IMAP servers that are well-behaved. It can affect insecure connections and buggy, untrusted, or compromised servers (for example, connecting to a user supplied hostname). This issue has been patched in versions 0.5.7, 0.4.20, 0.3.9, and 0.2.5.CVSS6.5MediumEPSS0.51%PrioritiseCVE-2025-27788ruby · json +15 moreRuby JSON Parser has Out-of-bounds ReadJSON 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.CVSS7.5HighEPSS0.72%RoutineCVE-2025-25186ruby · net-imap +38 moreNet::IMAP vulnerable to possible DoS by memory exhaustionNet::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 arrays of integers, with no limitation on the expanded size of the ranges. Versions 0.3.8, 0.4.19, 0.5.6, and higher fix this issue. Additional details for proper configuration of fixed versions and backward compatibility are available in the GitHub Security Advisory.CVSS6.5MediumEPSS0.63%RoutineCVE-2024-49761ruby · rexml +121 moreREXML ReDoS vulnerabilityREXML 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.CVSS7.5HighEPSS1.42%RoutineCVE-2024-43398ruby · rexml +54 moreREXML denial of service vulnerabilityREXML 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.CVSS5.9MediumEPSS1.21%RoutineCVE-2024-41946ruby · rexml +52 moreREXML DoS vulnerabilityREXML 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.CVSS7.5HighEPSS1.19%RoutineCVE-2024-41123ruby · rexml +52 moreREXML DoS vulnerabilityREXML 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.CVSS7.5HighEPSS1.28%RoutineCVE-2024-39908ruby · rexml +55 moreDenial of service in REXMLREXML is an XML toolkit for Ruby. The REXML gem before 3.3.1 has some DoS vulnerabilities when it parses an XML that has many specific characters such as `<`, `0` and `%>`. If you need to parse untrusted XMLs, you many be impacted to these vulnerabilities. The REXML gem 3.3.2 or later include the patches to fix these vulnerabilities. Users are advised to upgrade. Users unable to upgrade should avoid parsing untrusted XML strings.CVSS4.3MediumEPSS1.49%RoutineCVE-2024-35176ruby · rexml +47 moreREXML contains a denial of service vulnerabilityREXML is an XML toolkit for Ruby. The REXML gem before 3.2.6 has a denial of service vulnerability when it parses an XML that has many `<`s in an attribute value. Those who need to parse untrusted XMLs may be impacted to this vulnerability. The REXML gem 3.2.7 or later include the patch to fix this vulnerability. As a workaround, don't parse untrusted XMLs.CVSS5.3MediumEPSS2.06%RoutineCVE-2015-1855ruby +11 moreruby rubyverify_certificate_identity in the OpenSSL extension in Ruby before 2.0.0 patchlevel 645, 2.1.x before 2.1.6, and 2.2.x before 2.2.2 does not properly validate hostnames, which allows remote attackers to spoof servers via vectors related to (1) multiple wildcards, (1) wildcards in IDNA names, (3) case sensitivity, and (4) non-ASCII characters.CVSS5.9MediumEPSS2.81%RoutineCVE-2011-3624ruby +1 moreruby rubyVarious methods in WEBrick::HTTPRequest in Ruby 1.9.2 and 1.8.7 and earlier do not validate the X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Server headers in requests, which might allow remote attackers to inject arbitrary text into log files or bypass intended address parsing via a crafted header.CVSS5.3MediumEPSS1.52%RoutineCVE-2013-6461ruby · nokogiri gem +8 moreruby nokogiri gemNokogiri gem 1.5.x and 1.6.x has DoS while parsing XML entities by failing to apply limitsCVSS6.5MediumEPSS2.19%RoutineCVE-2013-6460ruby · nokogiri gem +8 moreruby nokogiri gemNokogiri gem 1.5.x has Denial of Service via infinite loop when parsing XML documentsCVSS6.5MediumEPSS2.08%PrioritiseCVE-2016-2339ruby +5 moreruby rubyAn exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize" function functionality of Ruby. In Fiddle::Function.new "initialize" heap buffer "arg_types" allocation is made based on args array length. Specially constructed object passed as element of args array can increase this array size after mentioned allocation and cause heap overflow.CVSS9.8CriticalEPSS5.14%PrioritiseCVE-2016-2337ruby +4 moreruby rubyType confusion exists in _cancel_eval Ruby's TclTkIp class method. Attacker passing different type of object than String as "retval" argument can cause arbitrary code execution.CVSS9.8CriticalEPSS6.15%PrioritiseCVE-2016-2336ruby +1 moreruby rubyType confusion exists in two methods of Ruby's WIN32OLE class, ole_invoke and ole_query_interface. Attacker passing different type of object than this assumed by developers can cause arbitrary code execution.CVSS9.8CriticalEPSS3.43%