RHSA-2026:37397: Important: ruby security update

Published Jul 9, 2026
·
Updated

Important: ruby security update

Other sources

Ruby is an extensible, interpreted, object-oriented, scripting language. It has features to process text files and to perform system management tasks.Security Fix(es): ruby/net-imap: ruby: Net::IMAP: IMAP Command Injection via Symbol Arguments (CVE-2026-42258) net-imap: ruby: Net::IMAP: Information disclosure via man-in-the-middle attack bypassing TLS (CVE-2026-42246) 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.

Red Hat

Affected Software

38 affected componentsFixes available
Red Hat Red Hat Enterprise Linux Server - Extended Life Cycle Support (for IBM z Systems)
Red Hat Red Hat Enterprise Linux Server - Extended Life Cycle Support
Red Hat Red Hat Enterprise Linux Server - Extended Life Cycle Support for IBM Power, little endian
Red Hat Red Hat Enterprise Linux Server - Extended Life Cycle Support for IBM Power, big endian
redhat/ruby<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-debuginfo<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-debuginfo<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-devel<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-doc<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-irb<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-libs<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-libs<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-tcltk<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/rubygem-bigdecimal<1.2.0-39.el7_9.1
1.2.0-39.el7_9.1
redhat/rubygem-io-console<0.4.2-39.el7_9.1
0.4.2-39.el7_9.1
redhat/rubygem-json<1.7.7-39.el7_9.1
1.7.7-39.el7_9.1
redhat/rubygem-minitest<4.3.2-39.el7_9.1
4.3.2-39.el7_9.1
redhat/rubygem-psych<2.0.0-39.el7_9.1
2.0.0-39.el7_9.1
redhat/rubygem-rake<0.9.6-39.el7_9.1
0.9.6-39.el7_9.1
redhat/rubygem-rdoc<4.0.0-39.el7_9.1
4.0.0-39.el7_9.1
redhat/rubygems<2.0.14.1-39.el7_9.1
2.0.14.1-39.el7_9.1
redhat/rubygems-devel<2.0.14.1-39.el7_9.1
2.0.14.1-39.el7_9.1
redhat/ruby-devel<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-tcltk<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/rubygem-bigdecimal<1.2.0-39.el7_9.1
1.2.0-39.el7_9.1
redhat/rubygem-io-console<0.4.2-39.el7_9.1
0.4.2-39.el7_9.1
redhat/rubygem-json<1.7.7-39.el7_9.1
1.7.7-39.el7_9.1
redhat/rubygem-psych<2.0.0-39.el7_9.1
2.0.0-39.el7_9.1
redhat/ruby<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-debuginfo<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-devel<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-libs<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/ruby-tcltk<2.0.0.648-39.el7_9.1
2.0.0.648-39.el7_9.1
redhat/rubygem-bigdecimal<1.2.0-39.el7_9.1
1.2.0-39.el7_9.1
redhat/rubygem-io-console<0.4.2-39.el7_9.1
0.4.2-39.el7_9.1
redhat/rubygem-json<1.7.7-39.el7_9.1
1.7.7-39.el7_9.1
redhat/rubygem-psych<2.0.0-39.el7_9.1
2.0.0-39.el7_9.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/ruby-debuginfo to a version that resolves this vulnerability.

    Fixed in 2.0.0.648-39.el7_9.1
  2. Upgrade

    Upgrade redhat/ruby-devel to a version that resolves this vulnerability.

    Fixed in 2.0.0.648-39.el7_9.1
  3. Upgrade

    Upgrade redhat/ruby-doc to a version that resolves this vulnerability.

    Fixed in 2.0.0.648-39.el7_9.1
  4. Upgrade

    Upgrade redhat/ruby-tcltk to a version that resolves this vulnerability.

    Fixed in 2.0.0.648-39.el7_9.1
  5. Upgrade

    Upgrade redhat/rubygem-minitest to a version that resolves this vulnerability.

    Fixed in 4.3.2-39.el7_9.1
  6. Upgrade

    Upgrade redhat/rubygem-rake to a version that resolves this vulnerability.

    Fixed in 0.9.6-39.el7_9.1
  7. Upgrade

    Upgrade redhat/rubygems-devel to a version that resolves this vulnerability.

    Fixed in 2.0.14.1-39.el7_9.1
  8. Upgrade

    Upgrade redhat/ruby to a version that resolves this vulnerability.

    Fixed in 2.0.0.648-39.el7_9.1
  9. Upgrade

    Upgrade redhat/ruby-irb to a version that resolves this vulnerability.

    Fixed in 2.0.0.648-39.el7_9.1
  10. Upgrade

    Upgrade redhat/ruby-libs to a version that resolves this vulnerability.

    Fixed in 2.0.0.648-39.el7_9.1
  11. Upgrade

    Upgrade redhat/rubygem-bigdecimal to a version that resolves this vulnerability.

    Fixed in 1.2.0-39.el7_9.1
  12. Upgrade

    Upgrade redhat/rubygem-io-console to a version that resolves this vulnerability.

    Fixed in 0.4.2-39.el7_9.1
  13. Upgrade

    Upgrade redhat/rubygem-json to a version that resolves this vulnerability.

    Fixed in 1.7.7-39.el7_9.1
  14. Upgrade

    Upgrade redhat/rubygem-psych to a version that resolves this vulnerability.

    Fixed in 2.0.0-39.el7_9.1
  15. Upgrade

    Upgrade redhat/rubygem-rdoc to a version that resolves this vulnerability.

    Fixed in 4.0.0-39.el7_9.1
  16. Upgrade

    Upgrade redhat/rubygems to a version that resolves this vulnerability.

    Fixed in 2.0.14.1-39.el7_9.1

Event History

Jul 9, 2026
Advisory Published
via Red Hat·12:00 AM
Data Sourced
via Red Hat·12:00 AM
RemedyDescriptionAffected Software
Advisory Published
via Red Hat·05:02 PM
Data Sourced
via Red Hat·05:02 PM
Severity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of RHSA-2026:37397?

The severity of RHSA-2026:37397 is high, rated at 7.

2

What vulnerabilities are addressed in RHSA-2026:37397?

RHSA-2026:37397 addresses a command injection vulnerability in ruby/net-imap, specifically CVE-2026-42258.

3

How do I fix RHSA-2026:37397?

To fix RHSA-2026:37397, update to the latest version of Ruby as specified in the security advisory.

4

Which software packages are affected by RHSA-2026:37397?

The affected software packages include redhat/ruby, redhat/ruby-debuginfo, redhat/ruby-devel, redhat/ruby-libs, redhat/ruby-tcltk, redhat/rubygem-bigdecimal, redhat/rubygem-io-console, and redhat/rubygem-json.

5

What is CVE-2026-42258 in relation to RHSA-2026:37397?

CVE-2026-42258 is an IMAP command injection vulnerability that can occur via symbolic arguments in the ruby/net-imap library.

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