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."
CVE-2021-32066
Score 7.4 from GitHub Security Advisory (severity: HIGH) published 2022-05-24. NVD baseline CVSS 7.4; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.4
- EG Score
- 7.4(medium)
- EPSS
- 85.3%
- KEV
- Not listed
Published
August 1, 2021
Last Modified
November 21, 2024
References (16)
- cve@mitrehttps://github.com/ruby/ruby/commit/a21a3b7d23704a01d34bd79d09dc37897e00922a
- cve@mitrehttps://hackerone.com/reports/1178562
- cve@mitrehttps://lists.debian.org/debian-lts-announce/2021/10/msg00009.html
- cve@mitrehttps://lists.debian.org/debian-lts-announce/2023/04/msg00033.html
- cve@mitrehttps://security.gentoo.org/glsa/202401-27
- cve@mitrehttps://security.netapp.com/advisory/ntap-20210902-0004/
- cve@mitrehttps://www.oracle.com/security-alerts/cpuapr2022.html
- cve@mitrehttps://www.ruby-lang.org/en/news/2021/07/07/starttls-stripping-in-net-imap/
- af854a3a-2127-422b-91ae-364da2661108https://github.com/ruby/ruby/commit/a21a3b7d23704a01d34bd79d09dc37897e00922a
- af854a3a-2127-422b-91ae-364da2661108https://hackerone.com/reports/1178562
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html
- af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html
- af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202401-27
- af854a3a-2127-422b-91ae-364da2661108https://security.netapp.com/advisory/ntap-20210902-0004/
- af854a3a-2127-422b-91ae-364da2661108https://www.oracle.com/security-alerts/cpuapr2022.html
Vendor Advisories for CVE-2021-32066(5)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2022:0708Red Hat Product SecurityHigh
Red Hat Security Advisory: rh-ruby26-ruby security, bug fix, and enhancement update
- RHSA-2022:0582Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby:2.6 security update
- RHSA-2022:0581Red Hat Product SecurityHigh
Red Hat Security Advisory: ruby:2.6 security update
- RHSA-2021:3982Red Hat Product SecurityHigh
Red Hat Security Advisory: rh-ruby30-ruby security update
- RHSA-2021:3559Red Hat Product SecurityHigh
Red Hat Security Advisory: rh-ruby27-ruby security update
Patch Availability(9)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | rh-ruby26-ruby-0:2.6.9-120.el7 | 2022-02-28 | redhat |
| redhat | ruby:2.5-8050020220216195847.c5368500 | 2022-02-24 | redhat |
| redhat | ruby:2.6-8010020220201152941.c27ad7f8 | 2022-02-21 | redhat |
| redhat | ruby:2.6-8020020220201131207.4cda2c84 | 2022-02-21 | redhat |
| redhat | ruby:2.6-8050020211215144356.c5368500 | 2022-02-16 | redhat |
| redhat | ruby:2.6-8040020220131135901.522a0ee4 | 2022-02-16 | redhat |
| redhat | rh-ruby30-ruby-0:3.0.2-148.el7 | 2021-10-25 | redhat |
| redhat | rh-ruby27-ruby-0:2.7.4-130.el7 | 2021-09-20 | redhat |
| redhat | ruby:2.7-8040020210728141159.522a0ee4 | 2021-08-05 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(5)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Microsoft MSRCCVE-2021-320662021-08-11
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."
- Red HatRHSA-2021:3020MODERATE2021-07-07
RHSA-2021:3020 — Moderate
- Red HatRHSA-2022:0543MODERATE2021-07-07
RHSA-2022:0543 — Moderate
- Red HatRHSA-2022:0544MODERATE2021-07-07
RHSA-2022:0544 — Moderate
- Red HatRHSA-2022:0672MODERATE2021-07-07
RHSA-2022:0672 — Moderate
Data Freshness Timeline
(refreshed 7× in last 7d / 44× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:43 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 21:30 UTCOSV refresh
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 14:05 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:06 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
Show 56 moreShow fewer
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:15 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 00:57 UTCOSV refresh
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 12:53 UTCEG score recompute
- 2026-05-26 12:53 UTCVendor advisory
- 2026-05-26 12:53 UTCGHSA enrichment
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc · redhat
Same CWE
10 shownCWE-326 · CWE-755
- CVE-2013-7287EG 9.8CRITICAL
- CVE-2013-2166EG 9.8CRITICAL
- CVE-2011-4121EG 9.8CRITICAL
- CVE-2009-5043EG 9.8CRITICAL
- CVE-2018-0448EG 9.8CRITICAL
- CVE-2017-2877EG 9.8CRITICAL
- CVE-2018-15124EG 9.8CRITICAL
- CVE-2017-1000486EG 9.8 KEVEPSS 100%CRITICAL
- CVE-2017-11317EG 9.8 KEVEPSS 100%CRITICAL
- CVE-2017-7903EG 9.8CRITICAL
Frequently asked(5)
What is CVE-2021-32066?
When was CVE-2021-32066 disclosed?
Is CVE-2021-32066 actively exploited?
What is the CVSS score of CVE-2021-32066?
How do I remediate CVE-2021-32066?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2021-32066
Is Your Infrastructure Affected by CVE-2021-32066?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.