Ruby Lang Ruby vulnerabilities

94 vulnerabilities

Known vulnerabilities in Ruby Lang Ruby, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.

RoutineCVE-2026-132825ruby-lang · ruby +125 moreruby-lang rubyRuby before 3.3.14, 3.4.13, and 4.0.10 has a heap-based buffer overflow during case conversion. One byte can be written outside a buffer for, for example, ISO-8859-1 or Windows-1252.CVSS7.4HighEPSS1.97%Act nowCVE-2026-97229GitLab · Community Edition and Enterprise Edition +72 moreGitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound VulnerabilityGitLab has remediated an issue in GitLab CE/EE affecting all versions from 19.2 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2 that, under certain conditions, could have allowed an unauthenticated user to execute arbitrary code on the GitLab server via a specially crafted regular expression in a CI/CD configuration, due to insufficient regular expression validation.CVSS10.0CriticalKEVEPSS76.45%PrioritiseCVE-2026-46727ruby-lang · ruby +8 moreruby-lang rubyAn issue was discovered in Ruby 4 before 4.0.5. A race condition leading to a use-after-free in the pthread-based getaddrinfo timeout handler (rb_getaddrinfo in ext/socket/raddrinfo.c) allows a remote attacker who can delay DNS responses near the user-specified timeout to crash a Ruby process that calls Addrinfo.getaddrinfo(..., timeout:) or Socket.tcp(..., resolv_timeout:). Memory-corruption-based exploitation is theoretically possible. The attack could, for example, be carried out through a crafted authoritative DNS server or recursive resolver.CVSS8.1HighEPSS0.48%RoutineCVE-2023-28756debian · debian_linux +16 moredebian debian_linuxA ReDoS issue was discovered in the Time component through 0.2.1 in Ruby through 3.2.1. The Time parser mishandles invalid URLs that have specific characters. It causes an increase in execution time for parsing strings to Time objects. The fixed versions are 0.1.1 and 0.2.2.CVSS5.3MediumEPSS2.54%PrioritiseCVE-2021-33621fedoraproject · fedora +41 morefedoraproject fedoraThe 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.CVSS8.8HighEPSS3.06%PrioritiseCVE-2022-28739apple · macos +53 moreapple macosThere is a buffer over-read in Ruby before 2.6.10, 2.7.x before 2.7.6, 3.x before 3.0.4, and 3.1.x before 3.1.2. It occurs in String-to-Float conversion, including Kernel#Float and String#to_f.CVSS7.5HighEPSS4.53%PrioritiseCVE-2022-28738ruby-lang · ruby +2 moreruby-lang rubyA double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2. If a victim attempts to create a Regexp from untrusted user input, an attacker may be able to write to unexpected memory locations.CVSS9.8CriticalEPSS3.14%PrioritiseCVE-2021-41819debian · debian_linux +19 moredebian debian_linuxCGI::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.CVSS7.5HighEPSS3.20%PrioritiseCVE-2021-41817debian · debian_linux +15 moredebian debian_linuxDate.parse in the date gem through 3.2.0 for Ruby allows ReDoS (regular expression Denial of Service) via a long string. The fixed versions are 3.2.1, 3.1.2, 3.0.2, and 2.0.1.CVSS7.5HighEPSS3.46%PrioritiseCVE-2021-32066oracle · jd_edwards_enterpriseone_tools +6 moreoracle jd_edwards_enterpriseone_toolsAn issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1. Net::IMAP does not raise an exception when StartTLS fails with an an unknown response, which might allow man-in-the-middle attackers to bypass the TLS protections by leveraging a network position between the client and the registry to block the StartTLS command, aka a "StartTLS stripping attack."CVSS7.4HighEPSS2.91%PrioritiseCVE-2021-28966ruby-lang · ruby +2 moreruby-lang rubyIn Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.CVSS7.5HighEPSS58.04%RoutineCVE-2021-31810debian · debian_linux +7 moredebian debian_linuxAn issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1. A malicious FTP server can use the PASV response to trick Net::FTP into connecting back to a given IP address and port. This potentially makes curl extract information about services that are otherwise private and not disclosed (e.g., the attacker can conduct port scans and service banner extractions).CVSS5.8MediumEPSS3.10%PrioritiseCVE-2021-28965fedoraproject · fedora +11 morefedoraproject fedoraThe REXML gem before 3.2.5 in Ruby before 2.6.7, 2.7.x before 2.7.3, and 3.x before 3.0.1 does not properly address XML round-trip issues. An incorrect document can be produced after parsing and serializing.CVSS7.5HighEPSS4.45%PrioritiseCVE-2020-25613fedoraproject · fedora +26 morefedoraproject fedoraAn issue was discovered in Ruby through 2.5.8, 2.6.x through 2.6.6, and 2.7.x through 2.7.1. WEBrick, a simple HTTP server bundled with Ruby, had not checked the transfer-encoding header value rigorously. An attacker may potentially exploit this issue to bypass a reverse proxy (which also has a poor header check), which may lead to an HTTP Request Smuggling attack.CVSS7.5HighEPSS3.96%RoutineCVE-2020-10933debian · debian_linux +7 moredebian debian_linuxAn issue was discovered in Ruby 2.5.x through 2.5.7, 2.6.x through 2.6.5, and 2.7.0. If a victim calls BasicSocket#read_nonblock(requested_size, buffer, exception: false), the method resizes the buffer to fit the requested size, but no data is copied. Thus, the buffer string provides the previous value of the heap. This may expose possibly sensitive data from the interpreter.CVSS5.3MediumEPSS2.53%RoutineCVE-2020-5247puma +6 moreHTTP Response Splitting in PumaIn Puma (RubyGem) before 4.3.2 and before 3.12.3, if an application using Puma allows untrusted input in a response header, an attacker can use newline characters (i.e. `CR`, `LF` or`/r`, `/n`) to end the header and inject malicious content, such as additional headers or an entirely new response body. This vulnerability is known as HTTP Response Splitting. While not an attack in itself, response splitting is a vector for several other attacks, such as cross-site scripting (XSS). This is related to CVE-2019-16254, which fixed this vulnerability for the WEBrick Ruby web server. This has been fixed in versions 4.3.2 and 3.12.3 by checking all headers for line endings and rejecting headers with those characters.CVSS7.5HighEPSS2.55%PrioritiseCVE-2016-2338debian · debian_linux +5 moredebian debian_linuxAn exploitable heap overflow vulnerability exists in the Psych::Emitter start_document function of Ruby. In Psych::Emitter start_document function heap buffer "head" allocation is made based on tags array length. Specially constructed object passed as element of tags array can increase this array size after mentioned allocation and cause heap overflow.CVSS9.8CriticalEPSS4.83%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-2019-15845canonical · ubuntu_linux +4 morecanonical ubuntu_linuxRuby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 mishandles path checking within File.fnmatch functions.CVSS6.5MediumEPSS2.97%PrioritiseCVE-2011-4121openssl · openssl extension of ruby (git trunk) +1 moreopenssl openssl extension of ruby (git trunk)The OpenSSL extension of Ruby (Git trunk) versions after 2011-09-01 up to 2011-11-03 always generated an exponent value of '1' to be used for private RSA key generation. A remote attacker could use this flaw to bypass or corrupt integrity of services, depending on strong private RSA keys generation mechanism.CVSS9.8CriticalEPSS2.53%