Skip to content
OpenAdvisories
Medium ALSA-2024:3838 6 CVEs

Moderate: ruby security update

Published Jun 11, 2024 · Updated Oct 29, 2026

Summary

Ruby is an extensible, interpreted, object-oriented, scripting language. It has features to process text files and to perform system management tasks.

The following packages have been upgraded to a later upstream version: ruby
(3.0). (AlmaLinux-35740)

Security Fix(es):

* ruby/cgi-gem: HTTP response splitting in CGI (CVE-2021-33621)
* ruby: ReDoS vulnerability in URI (CVE-2023-28755)
* ruby: ReDoS vulnerability in Time (CVE-2023-28756)
* ruby: Buffer overread vulnerability in StringIO (CVE-2024-27280)
* ruby: RCE vulnerability with .rdoc_options in RDoc (CVE-2024-27281)
* ruby: Arbitrary memory address read vulnerability with Regex search (CVE-2024-27282)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Fixed packages 22

ReleasePackageFixed in
AlmaLinux · 9 ruby 3.0.7-162.el9_4
AlmaLinux · 9 ruby-default-gems 3.0.7-162.el9_4
AlmaLinux · 9 ruby-devel 3.0.7-162.el9_4
AlmaLinux · 9 ruby-doc 3.0.7-162.el9_4
AlmaLinux · 9 ruby-libs 3.0.7-162.el9_4
AlmaLinux · 9 rubygem-bigdecimal 3.0.0-162.el9_4
AlmaLinux · 9 rubygem-bundler 2.2.33-162.el9_4
AlmaLinux · 9 rubygem-io-console 0.5.7-162.el9_4
AlmaLinux · 9 rubygem-irb 1.3.5-162.el9_4
AlmaLinux · 9 rubygem-json 2.5.1-162.el9_4
AlmaLinux · 9 rubygem-minitest 5.14.2-162.el9_4
AlmaLinux · 9 rubygem-power_assert 1.2.1-162.el9_4
AlmaLinux · 9 rubygem-psych 3.3.2-162.el9_4
AlmaLinux · 9 rubygem-rake 13.0.3-162.el9_4
AlmaLinux · 9 rubygem-rbs 1.4.0-162.el9_4
AlmaLinux · 9 rubygem-rdoc 6.3.4.1-162.el9_4
AlmaLinux · 9 rubygem-rexml 3.2.5-162.el9_4
AlmaLinux · 9 rubygem-rss 0.2.9-162.el9_4
AlmaLinux · 9 rubygem-test-unit 3.3.7-162.el9_4
AlmaLinux · 9 rubygem-typeprof 0.15.2-162.el9_4
AlmaLinux · 9 rubygems 3.2.33-162.el9_4
AlmaLinux · 9 rubygems-devel 3.2.33-162.el9_4

Vulnerabilities 6

  • Critical 9.8

    StringIO buffer overread vulnerability

    A buffer-overread issue was discovered in StringIO 3.0.1, as distributed in Ruby 3.0.x through 3.0.6 and 3.1.x through 3.1.4. The ungetbyte and ungetc methods on a StringIO can read past the end of a string, and a subsequent call to StringIO.gets may return t…

  • High 8.8

    HTTP response splitting in CGI

    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.

  • High 7.5

    Ruby Time component ReDoS issue

    A 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 …

  • Medium 6.6

    An issue was discovered in Ruby 3.x through 3.3.0. If attacker-supplied data is provided to the Ruby regex compiler, it…

  • Medium 5.3

    Ruby URI component ReDoS issue

    A ReDoS issue was discovered in the URI component through 0.12.0 in Ruby through 3.2.1. The URI parser mishandles invalid URLs that have specific characters. It causes an increase in execution time for parsing strings to URI objects. The fixed versions are 0.…

  • Medium 4.5

    RDoc RCE vulnerability with .rdoc_options

    An issue was discovered in RDoc 6.3.3 through 6.6.2, as distributed in Ruby 3.x through 3.3.0. When parsing .rdoc_options (used for configuration in RDoc) as a YAML file, object injection and resultant remote code execution are possible because there are no r…

References

  • report
    https://access.redhat.com/security/cve/CVE-2021-33621
  • report
    https://access.redhat.com/security/cve/CVE-2023-28755
  • report
    https://access.redhat.com/security/cve/CVE-2023-28756
  • report
    https://access.redhat.com/security/cve/CVE-2024-27280
  • report
    https://access.redhat.com/security/cve/CVE-2024-27281
  • report
    https://access.redhat.com/security/cve/CVE-2024-27282
  • report
    https://bugzilla.redhat.com/2149706
  • report
    https://bugzilla.redhat.com/2184059
  • report
    https://bugzilla.redhat.com/2184061
  • report
    https://bugzilla.redhat.com/2270749
  • report
    https://bugzilla.redhat.com/2270750
  • report
    https://bugzilla.redhat.com/2276810
  • advisory
    https://errata.almalinux.org/9/ALSA-2024-3838.html