CVE-2021-32066
HIGH7.4EPSS 0.07%Published: 8/1/2021Modified: 12/3/2025
Also known as:ALPINE-CVE-2021-32066
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."
Affected packages (5)
- Alpine/rubyfrom 0, < 2.6.8-r0
- Bitnami/ruby>= 2.6.0, < 2.6.8, >= 2.7.0, < 2.7.4, >= 3.0.0, < 3.0.2
- Bitnami/ruby-min>= 2.6.0, < 2.6.8, >= 2.7.0, < 2.7.4, >= 3.0.0, < 3.0.2
- Debian/jrubyfrom 0, < 9.3.9.0+ds-1
- Debian/ruby2.7from 0, < 2.7.4-1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
References (11)
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2021-32066
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-32066
- WEBhttps://github.com/ruby/ruby/commit/a21a3b7d23704a01d34bd79d09dc37897e00922a
- WEBhttps://hackerone.com/reports/1178562
- WEBhttps://lists.debian.org/debian-lts-announce/2021/10/msg00009.html
- WEBhttps://lists.debian.org/debian-lts-announce/2023/04/msg00033.html
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2021-32066
- WEBhttps://security.gentoo.org/glsa/202401-27
- WEBhttps://security.netapp.com/advisory/ntap-20210902-0004/
- WEBhttps://www.oracle.com/security-alerts/cpuapr2022.html
- WEBhttps://www.ruby-lang.org/en/news/2021/07/07/starttls-stripping-in-net-imap/