RHSA-2026:35866: Important: ruby:2.5 security update

Published Jul 6, 2026
·
Updated

Important: ruby:2.5 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

68 affected componentsFixes available
Red Hat Red Hat Enterprise Linux Server - AUS
Red Hat Red Hat Enterprise Linux for x86_64 - Extended Update Support Extension
redhat/ruby<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-abrt<0.3.0-4.module+el8.1.0+3656+f80bfa1d
0.3.0-4.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-bson<4.3.0-2.module+el8.1.0+3656+f80bfa1d
4.3.0-2.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-bundler<1.16.1-4.module+el8.4.0+14083+f9ece6dd
1.16.1-4.module+el8.4.0+14083+f9ece6dd
redhat/rubygem-mongo<2.5.1-2.module+el8.1.0+3656+f80bfa1d
2.5.1-2.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-mysql2<0.4.10-4.module+el8.1.0+3656+f80bfa1d
0.4.10-4.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-pg<1.0.0-2.module+el8.1.0+3656+f80bfa1d
1.0.0-2.module+el8.1.0+3656+f80bfa1d
redhat/ruby<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/ruby-debuginfo<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/ruby-debuginfo<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/ruby-debugsource<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/ruby-debugsource<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/ruby-devel<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/ruby-devel<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/ruby-doc<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/ruby-irb<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/ruby-libs<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/ruby-libs<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/ruby-libs-debuginfo<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/ruby-libs-debuginfo<2.5.9-109.module+el8.4.0+24479+aaeed2c5
2.5.9-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-abrt<0.3.0-4.module+el8.1.0+3656+f80bfa1d
0.3.0-4.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-abrt-doc<0.3.0-4.module+el8.1.0+3656+f80bfa1d
0.3.0-4.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-bigdecimal<1.3.4-109.module+el8.4.0+24479+aaeed2c5
1.3.4-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-bigdecimal<1.3.4-109.module+el8.4.0+24479+aaeed2c5
1.3.4-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-bigdecimal-debuginfo<1.3.4-109.module+el8.4.0+24479+aaeed2c5
1.3.4-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-bigdecimal-debuginfo<1.3.4-109.module+el8.4.0+24479+aaeed2c5
1.3.4-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-bson<4.3.0-2.module+el8.1.0+3656+f80bfa1d
4.3.0-2.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-bson-debuginfo<4.3.0-2.module+el8.1.0+3656+f80bfa1d
4.3.0-2.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-bson-debugsource<4.3.0-2.module+el8.1.0+3656+f80bfa1d
4.3.0-2.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-bson-doc<4.3.0-2.module+el8.1.0+3656+f80bfa1d
4.3.0-2.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-bundler<1.16.1-4.module+el8.4.0+14083+f9ece6dd
1.16.1-4.module+el8.4.0+14083+f9ece6dd
redhat/rubygem-bundler-doc<1.16.1-4.module+el8.4.0+14083+f9ece6dd
1.16.1-4.module+el8.4.0+14083+f9ece6dd
redhat/rubygem-io-console<0.4.6-109.module+el8.4.0+24479+aaeed2c5
0.4.6-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-io-console<0.4.6-109.module+el8.4.0+24479+aaeed2c5
0.4.6-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-io-console-debuginfo<0.4.6-109.module+el8.4.0+24479+aaeed2c5
0.4.6-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-io-console-debuginfo<0.4.6-109.module+el8.4.0+24479+aaeed2c5
0.4.6-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-json<2.1.0-109.module+el8.4.0+24479+aaeed2c5
2.1.0-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-json<2.1.0-109.module+el8.4.0+24479+aaeed2c5
2.1.0-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-json-debuginfo<2.1.0-109.module+el8.4.0+24479+aaeed2c5
2.1.0-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-json-debuginfo<2.1.0-109.module+el8.4.0+24479+aaeed2c5
2.1.0-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-minitest<5.10.3-109.module+el8.4.0+24479+aaeed2c5
5.10.3-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-mongo<2.5.1-2.module+el8.1.0+3656+f80bfa1d
2.5.1-2.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-mongo-doc<2.5.1-2.module+el8.1.0+3656+f80bfa1d
2.5.1-2.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-mysql2<0.4.10-4.module+el8.1.0+3656+f80bfa1d
0.4.10-4.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-mysql2-debuginfo<0.4.10-4.module+el8.1.0+3656+f80bfa1d
0.4.10-4.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-mysql2-debugsource<0.4.10-4.module+el8.1.0+3656+f80bfa1d
0.4.10-4.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-mysql2-doc<0.4.10-4.module+el8.1.0+3656+f80bfa1d
0.4.10-4.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-net-telnet<0.1.1-109.module+el8.4.0+24479+aaeed2c5
0.1.1-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-openssl<2.1.2-109.module+el8.4.0+24479+aaeed2c5
2.1.2-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-openssl<2.1.2-109.module+el8.4.0+24479+aaeed2c5
2.1.2-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-openssl-debuginfo<2.1.2-109.module+el8.4.0+24479+aaeed2c5
2.1.2-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-openssl-debuginfo<2.1.2-109.module+el8.4.0+24479+aaeed2c5
2.1.2-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-pg<1.0.0-2.module+el8.1.0+3656+f80bfa1d
1.0.0-2.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-pg-debuginfo<1.0.0-2.module+el8.1.0+3656+f80bfa1d
1.0.0-2.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-pg-debugsource<1.0.0-2.module+el8.1.0+3656+f80bfa1d
1.0.0-2.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-pg-doc<1.0.0-2.module+el8.1.0+3656+f80bfa1d
1.0.0-2.module+el8.1.0+3656+f80bfa1d
redhat/rubygem-psych<3.0.2-109.module+el8.4.0+24479+aaeed2c5
3.0.2-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-psych<3.0.2-109.module+el8.4.0+24479+aaeed2c5
3.0.2-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-psych-debuginfo<3.0.2-109.module+el8.4.0+24479+aaeed2c5
3.0.2-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-psych-debuginfo<3.0.2-109.module+el8.4.0+24479+aaeed2c5
3.0.2-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-rake<12.3.3-109.module+el8.4.0+24479+aaeed2c5
12.3.3-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-rdoc<6.0.1.1-109.module+el8.4.0+24479+aaeed2c5
6.0.1.1-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-test-unit<3.2.7-109.module+el8.4.0+24479+aaeed2c5
3.2.7-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygem-xmlrpc<0.3.0-109.module+el8.4.0+24479+aaeed2c5
0.3.0-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygems<2.7.6.3-109.module+el8.4.0+24479+aaeed2c5
2.7.6.3-109.module+el8.4.0+24479+aaeed2c5
redhat/rubygems-devel<2.7.6.3-109.module+el8.4.0+24479+aaeed2c5
2.7.6.3-109.module+el8.4.0+24479+aaeed2c5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 2.5.9-109.module+el8.4.0+24479+aaeed2c5
  2. Upgrade

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

    Fixed in 0.3.0-4.module+el8.1.0+3656+f80bfa1d
  3. Upgrade

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

    Fixed in 4.3.0-2.module+el8.1.0+3656+f80bfa1d
  4. Upgrade

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

    Fixed in 1.16.1-4.module+el8.4.0+14083+f9ece6dd
  5. Upgrade

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

    Fixed in 2.5.1-2.module+el8.1.0+3656+f80bfa1d
  6. Upgrade

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

    Fixed in 0.4.10-4.module+el8.1.0+3656+f80bfa1d
  7. Upgrade

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

    Fixed in 1.0.0-2.module+el8.1.0+3656+f80bfa1d
  8. Upgrade

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

    Fixed in 2.5.9-109.module+el8.4.0+24479+aaeed2c5
  9. Upgrade

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

    Fixed in 2.5.9-109.module+el8.4.0+24479+aaeed2c5
  10. Upgrade

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

    Fixed in 2.5.9-109.module+el8.4.0+24479+aaeed2c5
  11. Upgrade

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

    Fixed in 2.5.9-109.module+el8.4.0+24479+aaeed2c5
  12. Upgrade

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

    Fixed in 2.5.9-109.module+el8.4.0+24479+aaeed2c5
  13. Upgrade

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

    Fixed in 2.5.9-109.module+el8.4.0+24479+aaeed2c5
  14. Upgrade

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

    Fixed in 2.5.9-109.module+el8.4.0+24479+aaeed2c5
  15. Upgrade

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

    Fixed in 0.3.0-4.module+el8.1.0+3656+f80bfa1d
  16. Upgrade

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

    Fixed in 1.3.4-109.module+el8.4.0+24479+aaeed2c5
  17. Upgrade

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

    Fixed in 1.3.4-109.module+el8.4.0+24479+aaeed2c5
  18. Upgrade

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

    Fixed in 4.3.0-2.module+el8.1.0+3656+f80bfa1d
  19. Upgrade

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

    Fixed in 4.3.0-2.module+el8.1.0+3656+f80bfa1d
  20. Upgrade

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

    Fixed in 4.3.0-2.module+el8.1.0+3656+f80bfa1d
  21. Upgrade

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

    Fixed in 1.16.1-4.module+el8.4.0+14083+f9ece6dd
  22. Upgrade

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

    Fixed in 0.4.6-109.module+el8.4.0+24479+aaeed2c5
  23. Upgrade

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

    Fixed in 0.4.6-109.module+el8.4.0+24479+aaeed2c5
  24. Upgrade

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

    Fixed in 2.1.0-109.module+el8.4.0+24479+aaeed2c5
  25. Upgrade

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

    Fixed in 2.1.0-109.module+el8.4.0+24479+aaeed2c5
  26. Upgrade

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

    Fixed in 5.10.3-109.module+el8.4.0+24479+aaeed2c5
  27. Upgrade

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

    Fixed in 2.5.1-2.module+el8.1.0+3656+f80bfa1d
  28. Upgrade

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

    Fixed in 0.4.10-4.module+el8.1.0+3656+f80bfa1d
  29. Upgrade

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

    Fixed in 0.4.10-4.module+el8.1.0+3656+f80bfa1d
  30. Upgrade

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

    Fixed in 0.4.10-4.module+el8.1.0+3656+f80bfa1d
  31. Upgrade

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

    Fixed in 0.1.1-109.module+el8.4.0+24479+aaeed2c5
  32. Upgrade

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

    Fixed in 2.1.2-109.module+el8.4.0+24479+aaeed2c5
  33. Upgrade

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

    Fixed in 2.1.2-109.module+el8.4.0+24479+aaeed2c5
  34. Upgrade

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

    Fixed in 1.0.0-2.module+el8.1.0+3656+f80bfa1d
  35. Upgrade

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

    Fixed in 1.0.0-2.module+el8.1.0+3656+f80bfa1d
  36. Upgrade

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

    Fixed in 1.0.0-2.module+el8.1.0+3656+f80bfa1d
  37. Upgrade

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

    Fixed in 3.0.2-109.module+el8.4.0+24479+aaeed2c5
  38. Upgrade

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

    Fixed in 3.0.2-109.module+el8.4.0+24479+aaeed2c5
  39. Upgrade

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

    Fixed in 12.3.3-109.module+el8.4.0+24479+aaeed2c5
  40. Upgrade

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

    Fixed in 6.0.1.1-109.module+el8.4.0+24479+aaeed2c5
  41. Upgrade

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

    Fixed in 3.2.7-109.module+el8.4.0+24479+aaeed2c5
  42. Upgrade

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

    Fixed in 0.3.0-109.module+el8.4.0+24479+aaeed2c5
  43. Upgrade

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

    Fixed in 2.7.6.3-109.module+el8.4.0+24479+aaeed2c5
  44. Upgrade

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

    Fixed in 2.7.6.3-109.module+el8.4.0+24479+aaeed2c5
  45. Upgrade

    Upgrade ruby/net-imap to a version that resolves this vulnerability.

    Fixed in 2.5Patch CVE-2026-42246
  46. Upgrade

    Upgrade ruby/net-imap to a version that resolves this vulnerability.

    Fixed in 2.5Patch CVE-2026-42258

Event History

Jul 6, 2026
Advisory Published
via Red Hat·12:00 AM
Data Sourced
via Red Hat·12:00 AM
RemedyDescriptionAffected Software
Advisory Published
via Red Hat·06:23 AM
Data Sourced
via Red Hat·06:23 AM
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:35866?

The severity of RHSA-2026:35866 is classified as high with a score of 7.

2

How do I fix RHSA-2026:35866?

To fix RHSA-2026:35866, update your Ruby packages to the latest version provided by Red Hat.

3

What vulnerabilities are addressed in RHSA-2026:35866?

RHSA-2026:35866 addresses a command injection vulnerability in ruby/net-imap related to IMAP command injection via symbol arguments.

4

What software is affected by RHSA-2026:35866?

The affected software includes ruby, rubygem-abrt, rubygem-bson, rubygem-bundler, rubygem-mongo, rubygem-mysql2, and rubygem-pg.

5

When was RHSA-2026:35866 published?

RHSA-2026:35866 was published on July 6, 2026.

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