Where
-Infinity
0
Buffer Overflow

It was discovered that the Net::IMAP client in Ruby did not properly sanitize Symbol arguments passed to IMAP commands. A remote attacker controlling a malicious IMAP server, or able to influence command arguments, could use this to inject arbitrary IMAP commands via CRLF sequences. (CVE-2026-42258) It was discovered that the Zlib::GzipReader in Ruby did not correctly ensure sufficient buffer capacity in the zstreambufferungets function. An attacker could use this to craft a gzip stream that, when processed, could cause a buffer overflow, resulting in memory corruption and possibly arbitrary code execution. (CVE-2026-27820)

First published (updated )
Advisory
USN-8556-1
Severity
4
Buffer Overflow

A security vulnerability that causes buffer overflow when you pass a very large string (> 700 MB) to CGI.escapehtml on a platform where long type takes 4 bytes, typically, Windows.

Reference: https://www.ruby-lang.org/en/news/2021/11/24/buffer-overrun-in-cgi-escapehtml-cve-2021-41816/

First published (updated )
EOL
Apr 23, 2024

End of life: 4/23/2024, Latest version: 3.0.7

First published (updated )
EOL
Apr 23, 2024

End of life: 4/23/2024, Latest version: 3.0.7

First published (updated )
EOL
Mar 31, 2023

End of life: 3/31/2023, Latest version: 2.7.8

First published (updated )
EOL
Mar 31, 2023

End of life: 3/31/2023, Latest version: 2.7.8

First published (updated )
Severity
9.8
Weak Encryption
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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.

First published (updated )
Severity
5.3
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Various 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.

First published (updated )
Severity
3.3
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

ruby193 uses an insecure LDLIBRARYPATH setting.

First published (updated )
EOL
Mar 31, 2022

End of life: 3/31/2022, Latest version: 2.6.10

First published (updated )
EOL
Mar 31, 2022

End of life: 3/31/2022, Latest version: 2.6.10

First published (updated )
Severity
4

Array#pack method converts the receiver’s contents into a string with specified format. If the receiver contains some tainted objects, the returned string also should be tainted. String#unpack method which converts the receiver into an array also should propagate its tainted flag to the objects contained in the returned array. But, with B, b, H and h directives, the tainted flags are not propagated. So, if a script processes unreliable inputs by Array#pack and/or String#unpack with these directives and checks the reliability with tainted flags, the check might be wrong.

External References:

https://www.ruby-lang.org/en/news/2018/10/17/not-propagated-taint-flag-in-some-formats-of-pack-cve-2018-16396/

First published (updated )
EOL
Mar 31, 2021

End of life: 3/31/2021, Latest version: 2.5.9

First published (updated )
EOL
Mar 31, 2021

End of life: 3/31/2021, Latest version: 2.5.9

First published (updated )
Severity
1
Command Injection

The lazyinitialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injection attacks, as demonstrated by a Resolv::Hosts::new argument beginning with a '|' character, a different vulnerability than CVE-2017-17405. NOTE: situations with untrusted input may be highly unlikely.

Upstream bug:

https://github.com/ruby/ruby/pull/1777

Upstream patch:

https://github.com/ruby/ruby/commit/e7464561b5151501beb356fc750d5dd1a88014f7

First published (updated )
Severity
9.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

The parseryyerror function in the UTF-8 parser in Ruby 2.4.1 allows attackers to cause a denial of service (invalid write or read) or possibly have unspecified other impact via a crafted Ruby script, related to the parsertokaddutf8 function in parse.y. NOTE: this might have security relevance as a bypass of a $SAFE protection mechanism.

First published (updated )
Severity
9.8
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Type confusion exists in two methods of Ruby's WIN32OLE class, oleinvoke and olequeryinterface. Attacker passing different type of object than this assumed by developers can cause arbitrary code execution.

First published (updated )
EOL
Mar 31, 2020

End of life: 3/31/2020, Latest version: 2.4.10

First published (updated )
EOL
Mar 31, 2020

End of life: 3/31/2020, Latest version: 2.4.10

First published (updated )
EOL
Mar 31, 2019

End of life: 3/31/2019, Latest version: 2.3.8

First published (updated )
EOL
Mar 31, 2019

End of life: 3/31/2019, Latest version: 2.3.8

First published (updated )
EOL
Mar 31, 2018

End of life: 3/31/2018, Latest version: 2.2.10

First published (updated )
EOL
Mar 31, 2018

End of life: 3/31/2018, Latest version: 2.2.10

First published (updated )
EOL
Mar 31, 2017

End of life: 3/31/2017, Latest version: 2.1.10

First published (updated )
EOL
Mar 31, 2017

End of life: 3/31/2017, Latest version: 2.1.10

First published (updated )
Severity
4.3
AV:N/AC:M/Au:N/C:N/I:N/A:P

Algorithmic complexity vulnerability in Gem::Version::ANCHOREDVERSIONPATTERN in lib/rubygems/version.rb in RubyGems before 1.8.23.2, 1.8.24 through 1.8.26, 2.0.x before 2.0.10, and 2.1.x before 2.1.5, as used in Ruby 1.9.0 through 2.0.0p247, allows remote attackers to cause a denial of service (CPU consumption) via a crafted gem version that triggers a large amount of backtracking in a regular expression. NOTE: this issue is due to an incomplete fix for CVE-2013-4287.

1 / 2
First published (updated )
Severity
4.4
AV:L/AC:M/Au:N/C:P/I:P/A:P

ext/common/ServerInstanceDir.h in Phusion Passenger gem before 4.0.6 for Ruby allows local users to gain privileges or possibly change the ownership of arbitrary directories via a symlink attack on a directory with a predictable name in /tmp/.

First published (updated )
Severity
7.5
Input Validation
AV:N/AC:L/Au:N/C:P/I:P/A:P

multixml gem 0.5.2 for Ruby, as used in Grape before 0.2.6 and possibly other products, does not properly restrict casts of string values, which allows remote attackers to conduct object-injection attacks and execute arbitrary code, or cause a denial of service (memory and CPU consumption) involving nested XML entity references, by leveraging support for (1) YAML type conversion or (2) Symbol type conversion, a similar vulnerability to CVE-2013-0156.

First published (updated )
Severity
9.3
OS Command Injection
AV:N/AC:M/Au:N/C:C/I:C/A:C

kelredd-pruview gem 0.3.8 for Ruby allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a filename argument to (1) document.rb, (2) video.rb, or (3) videoimage.rb.

First published (updated )
Severity
9.3
OS Command Injection
AV:N/AC:M/Au:N/C:C/I:C/A:C

The extractfromocr function in lib/docsplit/textextractor.rb in the Karteek Docsplit (karteek-docsplit) gem 0.5.4 for Ruby allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a PDF filename.

1 / 2
First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203