# CVE-2021-32066: An issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x through 3.0.1.

- Severity: High 7.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.91%, higher than 88% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-01T00:00:00.000Z
- Modified: 2026-09-08T08:48:19.343Z
- Also known as: BIT-RUBY-2021-32066, BIT-RUBY-MIN-2021-32066
- Weaknesses: CWE-755
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ruby-lang ruby: from 2.6.0 up to 2.6.7; from 2.7.0 up to 2.7.3; from 3.0.0 up to 3.0.1
- oracle jd_edwards_enterpriseone_tools: before 9.2.6.1
- ruby (Bitnami): from 2.6.0 before 2.6.8; from 2.7.0 before 2.7.4; from 3.0.0 before 3.0.2
- ruby-min (Bitnami): from 2.6.0 before 2.6.8; from 2.7.0 before 2.7.4; from 3.0.0 before 3.0.2

## Every score

- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://hackerone.com/reports/1178562> (exploit, advisory, patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html> (advisory, mailing-list, third-party-advisory)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (advisory, patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210902-0004/> (advisory, third-party-advisory)
- <https://www.ruby-lang.org/en/news/2021/07/07/starttls-stripping-in-net-imap/> (advisory, vendor-advisory)
- <https://github.com/ruby/ruby/commit/a21a3b7d23704a01d34bd79d09dc37897e00922a> (advisory, patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html> (mailing-list, web)
- <https://security.gentoo.org/glsa/202401-27> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32066> (web)

## Sources

- CVE List: [CVE-2021-32066](https://www.cve.org/CVERecord?id=CVE-2021-32066), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-32066](https://nvd.nist.gov/vuln/detail/CVE-2021-32066), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-RUBY-2021-32066](https://osv.dev/vulnerability/BIT-RUBY-2021-32066), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-RUBY-MIN-2021-32066](https://osv.dev/vulnerability/BIT-RUBY-MIN-2021-32066), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-32066 · Whole record: https://cve.day/CVE-2021-32066.json · Rebuilt by cve.day 2026-11-25T22:58:02.906Z
