CVE & CISA-KEV Catalog

CVE-2021-32066

HIGHEPSS 86th pctl
7.4
CVSS v3
NVD

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

How to fix

Remediation Available
rubyAmazon
Fixed in:0:2.0.0.648-36.amzn2.0.10
Fixed in:0:2.0.0.648-36.amzn2.0.10
Fixed in:0:2.0.0.648-36.amzn2.0.10
ruby-debuginfoAmazon
Fixed in:0:2.0.0.648-36.amzn2.0.10
Fixed in:0:2.0.0.648-36.amzn2.0.10
Fixed in:0:2.0.0.648-36.amzn2.0.10
ruby-develAmazon
Fixed in:0:2.0.0.648-36.amzn2.0.10
Fixed in:0:2.0.0.648-36.amzn2.0.10
Fixed in:0:2.0.0.648-36.amzn2.0.10
ruby-docAmazon
Fixed in:0:2.0.0.648-36.amzn2.0.10
ruby-irbAmazon
Fixed in:0:2.0.0.648-36.amzn2.0.10
ruby-libsAmazon
Fixed in:0:2.0.0.648-36.amzn2.0.10
Fixed in:0:2.0.0.648-36.amzn2.0.10
Fixed in:0:2.0.0.648-36.amzn2.0.10
ruby-tcltkAmazon
Fixed in:0:2.0.0.648-36.amzn2.0.10
Fixed in:0:2.0.0.648-36.amzn2.0.10
Fixed in:0:2.0.0.648-36.amzn2.0.10
rubygem-bigdecimalAmazon
Fixed in:0:1.2.0-36.amzn2.0.10
Fixed in:0:1.2.0-36.amzn2.0.10
Fixed in:0:1.2.0-36.amzn2.0.10
rubygem-io-consoleAmazon
Fixed in:0:0.4.2-36.amzn2.0.10
Fixed in:0:0.4.2-36.amzn2.0.10
Fixed in:0:0.4.2-36.amzn2.0.10
rubygem-jsonAmazon
Fixed in:0:1.7.7-36.amzn2.0.10
Fixed in:0:1.7.7-36.amzn2.0.10
Fixed in:0:1.7.7-36.amzn2.0.10
rubygem-minitestAmazon
Fixed in:0:4.3.2-36.amzn2.0.10
rubygem-psychAmazon
Fixed in:0:2.0.0-36.amzn2.0.10
Fixed in:0:2.0.0-36.amzn2.0.10
Fixed in:0:2.0.0-36.amzn2.0.10
rubygem-rakeAmazon
Fixed in:0:0.9.6-36.amzn2.0.10
rubygem-rdocAmazon
Fixed in:0:4.0.0-36.amzn2.0.10
rubygemsAmazon
Fixed in:0:2.0.14.1-36.amzn2.0.10
rubygems-develAmazon
Fixed in:0:2.0.14.1-36.amzn2.0.10
jrubyDebian
Fixed in:9.3.9.0+ds-1CVE-2021-32066
Fixed in:9.3.9.0+ds-1CVE-2021-32066
Fixed in:9.3.9.0+ds-1CVE-2021-32066
libruby2.3Ubuntu
Fixed in:2.3.1-2~ubuntu16.04.16+esm1USN-5020-1

This Ubuntu release reached end-of-life on 2021-04-02.

libruby2.5Ubuntu
Fixed in:2.5.1-1ubuntu1.10USN-5020-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

libruby2.7Ubuntu
Fixed in:2.7.0-5ubuntu1.5USN-5020-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

ruby2.3Ubuntu
Fixed in:2.3.1-2~ubuntu16.04.16+esm1USN-5020-1

This Ubuntu release reached end-of-life on 2021-04-02.

ruby2.5Ubuntu
Fixed in:2.5.1-1ubuntu1.10USN-5020-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

ruby2.7Ubuntu
Fixed in:2.7.0-5ubuntu1.5USN-5020-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityNone

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Exploit Intelligence

2.91%probability of exploitation in 30 days
86thpercentile

Elevated risk: more likely to be exploited than 86% of all known CVEs.

References

Related Vulnerabilities

Other CWE-755 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2017-5638Critical9.8100%KEV + RansomFix
CVE-2020-7247Critical9.899%KEVFix
CVE-2023-36933High7.572%-Fix
CVE-2018-0934High7.566%-Fix
CVE-2019-14287High8.864%-Fix
CVE-2019-12815Critical9.858%-Fix

Common questions

How do I fix CVE-2021-32066?

Published advisories record a fix for 23 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2021-32066 being actively exploited?

Not that we know of. CVE-2021-32066 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 2.9% is the estimated probability that it will be exploited in the next 30 days. That is higher than 86% of all scored CVEs.

How severe is CVE-2021-32066?

CVE-2021-32066 has a CVSS v3 base score of 7.4, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2021-32066 affect?

Published advisories record a fix for ruby (Amazon), ruby-debuginfo (Amazon), ruby-devel (Amazon), ruby-doc (Amazon), and 19 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2021-32066
CVE-2021-32066 severity badge

Markdown

[![CVE-2021-32066](https://tridentstack.com/cve/badge/CVE-2021-32066.svg)](https://tridentstack.com/cve/CVE-2021-32066)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-32066"><img src="https://tridentstack.com/cve/badge/CVE-2021-32066.svg" alt="CVE-2021-32066"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.