CVE-2021-32066
No exploitation reported by the sources we read.
- Published2021-08-01
- WeaknessCWE-755
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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."
Timeline
dates in UTC- 2021-08-0119:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.6 | ≥ 2.6.0, ≤ 2.6.7 | no fix published | NVD |
| 2.7 | ≥ 2.7.0, ≤ 2.7.3 | no fix published | NVD |
| 3.0 | ≥ 3.0.0, ≤ 3.0.1 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.0 | ≥ 3.0.0, < 3.0.2 | 3.0.2 | OSV |
| 2.7 | ≥ 2.7.0, < 2.7.4 | 2.7.4 | OSV |
| 2.6 | ≥ 2.6.0, < 2.6.8 | 2.6.8 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.0 | ≥ 3.0.0, < 3.0.2 | 3.0.2 | OSV |
| 2.7 | ≥ 2.7.0, < 2.7.4 | 2.7.4 | OSV |
| 2.6 | ≥ 2.6.0, < 2.6.8 | 2.6.8 | OSV |
1 more product in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- jrubyDebian:14all versions · fixed in 9.3.9.0+ds-1
- jrubyDebian:13all versions · fixed in 9.3.9.0+ds-1
- jrubyDebian:12all versions · fixed in 9.3.9.0+ds-1
- jrubyDebian:10all versions · fixed in 9.1.17.0-3+deb10u1
- rh-ruby26-rubyRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:2.6.9-120.el7and 4 other packages
- rh-ruby26-rubygem-bigdecimalRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.4.1-120.el7
- rh-ruby26-rubygem-bundlerRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.17.2-120.el7
- rh-ruby26-rubygem-did_you_meanRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.3.0-120.el7
418 more package ranges on OSV.dev
Vendor advisories
ruby: StartTLS stripping vulnerability in Net::IMAP
ruby as a component of Red Hat Enterprise Linux 7 · ruby-devel as a component of Red Hat Enterprise Linux 7 · ruby-doc as a component of Red Hat Enterprise Linux 7 · +13 more
Red Hat Security Advisory: rh-ruby26-ruby security, bug fix, and enhancement update
Red Hat Security Advisory: ruby:2.5 security update
Red Hat Security Advisory: ruby:2.6 security update
Red Hat Security Advisory: ruby:2.6 security update
Red Hat Security Advisory: ruby:2.6 security update
4 more advisories
Fix
- Vendor fix Red Hat Product Security RHSA-2022:0708 · 64 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- No fix planned, says the vendor Red Hat Product Security CVE-2021-32066 · 16 productsOut of support scope
Advisories and patches
- github.comPatch
- hackerone.comPatch
- www.oracle.comPatch
- www.ruby-lang.orgVendor Advisory
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.17.4read 2026-10-23
- NVDCVSS 2.05.8read 2026-10-23
- NVDweakness (CWE)CWE-755read 2026-10-23
- FIRST EPSSEPSS score2.9 %2026-11-08
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-6861same flawAzure Linux · MIT
- BIT-ruby-2021-32066same flawBitnami · Apache-2.0
- BIT-ruby-min-2021-32066same flawBitnami · Apache-2.0
- EUVD-2021-18928same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-gx49-h5r3-q3xjsame flawGitHub Advisory Database · CC-BY-4.0
- JLSEC-2026-1285same flawJulia Security Advisories · CC-BY-4.0
- ALSA-2021:3020advisory covering several CVEsAlmaLinux · MIT
- ALSA-2022:0543advisory covering several CVEsAlmaLinux · MIT
- ALSA-2022:0672advisory covering several CVEsAlmaLinux · MIT
- DLA-2780-1advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-3408-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5066-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2021-0579advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2021-1306advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2021:1535-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:3838-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11622-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11623-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11786-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:12712-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:13623-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:14621-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15819-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2021:3020advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:3559advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:3982advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0543advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0544advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0581advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0582advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0672advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0708advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2021:3020advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2022:0543advisory covering several CVEsRocky Linux · BSD-3-Clause
- RLSA-2022:0672advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2021:3837-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:3838-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:15034-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:1512-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5020-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Published
- 2021-08-01
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-gx49-h5r3-q3xj
Frequently asked questions
What is CVE-2021-32066?
Is CVE-2021-32066 actively exploited?
What is the CVSS score for CVE-2021-32066?
Running Ruby? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-gx49-h5r3-q3xj
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0