CVE-2021-32066: High severity ruby vulnerability

Published Jul 7, 2021
·
Updated

An 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."

Other sources

Net::IMAP does not raise an exception when StartTLS fails with 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.”

References:

https://www.ruby-lang.org/en/news/2021/07/07/starttls-stripping-in-net-imap/

Red Hat

Ruby's Net::IMAP module did not raise an exception when receiving an unexpected response to the STARTTLS command and the connection was not upgraded to use TLS. A man-in-the-middle attacker could use this flaw to prevent Ruby applications using Net::IMAP to enable TLS encryption for a connection to an IMAP server and subsequently eavesdrop on or modify data sent over the plain text connection.

Affected Software

11 affected componentsFixes available
redhat/rh-ruby27-ruby<0:2.7.4-130.el7
0:2.7.4-130.el7
redhat/rh-ruby30-ruby<0:3.0.2-148.el7
0:3.0.2-148.el7
redhat/rh-ruby26-ruby<0:2.6.9-120.el7
0:2.6.9-120.el7
redhat/ruby<3.0.2
3.0.2
redhat/ruby<2.7.4
2.7.4
redhat/ruby<2.6.8
2.6.8
redhat/rubygem-net-imap<0.2.2
0.2.2
ruby-lang ruby>=2.6.0<=2.6.7
ruby-lang ruby>=2.7.0<=2.7.3
ruby-lang ruby>=3.0.0<=3.0.1
ORACLE JD Edwards EnterpriseOne Tools<9.2.6.1

Event History

Jul 7, 2021
CVE Published
12:00 AM
Data Sourced
via Red Hat·08:56 PM
DescriptionSeverityAffected Software
Aug 1, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2021-32066.

2

What is the severity of CVE-2021-32066?

The severity of CVE-2021-32066 is high with a CVSS score of 7.4.

3

Which software versions are affected by CVE-2021-32066?

Ruby versions through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1 are affected by CVE-2021-32066.

4

How can a man-in-the-middle attacker exploit CVE-2021-32066?

A man-in-the-middle attacker can exploit CVE-2021-32066 by using it to prevent Ruby applications using Net::IMAP from enabling TLS encryption for a connection.

5

Where can I find more information about CVE-2021-32066?

You can find more information about CVE-2021-32066 on the CVE website, NVD, Ruby's official website, and the Red Hat Bugzilla and Errata pages.

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