CVE-2021-32066
ruby: StartTLS stripping vulnerability in Net::IMAP
Overview
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."
Source: OX vulnerability database
Severity
7.4 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness: CWE-755
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | ruby | >=2.6.0, <2.6.8>=2.7.0, <2.7.4>=3.0.0, <3.0.2 | 2.6.82.7.43.0.2 |
| Bitnami | ruby-min | >=2.6.0, <2.6.8>=2.7.0, <2.7.4>=3.0.0, <3.0.2 | 2.6.82.7.43.0.2 |
| Julia | ruby_jll | >=0 | No fix yet |
Open a package to see all its vulnerabilities.
Operating systems · 418 fixes
Oracle Linux 1 release · 24 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | rubygem-net-telnet | 0.2.0-137.module+el8.4.0+20269+fcbf533e |
| 8 | rubygem-xmlrpc | 0.3.0-137.module+el8.4.0+20269+fcbf533e |
| 8 | rubygem-abrt +1 | 0.4.0-1.module+el8.3.0+7760+537395ec |
| 8 | rubygem-mysql2 +1 | 0.5.3-1.module+el8.4.0+20239+cbf59dc8 |
| 8 | rubygem-io-console | 0.5.6-137.module+el8.4.0+20269+fcbf533e |
| 8 | rubygem-power-assert | 1.1.7-137.module+el8.4.0+20269+fcbf533e |
18 more rows
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | ruby +1 | 2.7.3-2.ph4 |
Red Hat 4 releases · 73 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | ruby +14 | eol | — |
| 7 | rh-ruby30-rubygem-typeprof | 0:0.12.0-148.el7 | RHSA-2021:3982 |
| 7 | rh-ruby26-rubygem-net-telnet | 0:0.2.0-120.el7 | RHSA-2022:0708 |
| 7 | rh-ruby27-rubygem-net-telnet | 0:0.2.0-130.el7 | RHSA-2021:3559 |
| 7 | rh-ruby30-rubygem-rss | 0:0.2.9-148.el7 | RHSA-2021:3982 |
| 7 | rh-ruby26-rubygem-xmlrpc | 0:0.3.0-120.el7 | RHSA-2022:0708 |
176 more rows
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | libruby2-1-2-1 +3 | 2.1.9-19.6.1 | SUSE-SU-2021:3837-1 |
SUSE Linux Enterprise Micro 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.0 | libruby2-5-2-5 +2 | 2.5.9-4.20.1 | SUSE-SU-2021:3838-1 |
alma 3 releases · 26 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (ruby:2.5) | rubygem-net-telnet | 0.1.1-109.module_el8.5.0+259+8cec6917 |
| 8 (ruby:2.5) | rubygem-xmlrpc | 0.3.0-109.module_el8.5.0+2627+d9c243ca |
| 8 (ruby:2.5) | rubygem-abrt +1 | 0.3.0-4.module_el8.5.0+2623+08a8ba32 |
| 8 (ruby:2.5) | rubygem-mysql2 +1 | 0.4.10-4.module_el8.5.0+2625+ec418553 |
| 8 (ruby:2.5) | rubygem-io-console | 0.4.6-109.module_el8.5.0+2627+d9c243ca |
| 8 (ruby:2.5) | rubygem-pg +1 | 1.0.0-2.module_el8.5.0+2625+ec418553 |
63 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | ruby | 2.7.4-r0 |
| 3.23 | ruby | 2.7.4-r0 |
| 3.24 | ruby | 2.7.4-r0 |
| edge | ruby | 2.7.4-r0 |
debian 6 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | ruby2-5 | 2.5.5-3+deb10u4 |
| 10 | jruby | 9.1.17.0-3+deb10u1 |
| 11 | ruby2-7 | 2.7.4-1 |
| 12 | jruby | 9.3.9.0+ds-1 |
| 13 | jruby | 9.3.9.0+ds-1 |
| 14 | jruby | 9.3.9.0+ds-1 |
2 more rows
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| jruby | 9.3.9.0+ds-1 |
openSUSE 1 release · 7 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | libruby2-7-2-7 +5 | 2.7.4-1.1 | openSUSE-SU-2024:11622-1 |
| Tumbleweed | libruby3-0-3-0 +5 | 3.0.2-1.1 | openSUSE-SU-2024:11623-1 |
| Tumbleweed | libruby3-1-3-1 +5 | 3.1.0-1.1 | openSUSE-SU-2024:11786-1 |
| Tumbleweed | libruby3-2-3-2 +5 | 3.2.1-1.1 | openSUSE-SU-2024:12712-1 |
| Tumbleweed | libruby3-3-3-3 +5 | 3.3.0-1.2 | openSUSE-SU-2024:13623-1 |
| Tumbleweed | libruby3-4-3-4 +5 | 3.4.1-1.1 | openSUSE-SU-2025:14621-1 |
1 more row
rocky 5 releases · 22 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | rubygem-net-telnet | 0.2.0-137.module+el8.4.0+629+f8f0bf91 |
| 8 | rubygem-xmlrpc | 0.3.0-137.module+el8.4.0+629+f8f0bf91 |
| 8 | rubygem-io-console | 0.5.6-137.module+el8.4.0+629+f8f0bf91 |
| 8 | rubygem-power-assert | 1.1.7-137.module+el8.4.0+629+f8f0bf91 |
| 8 | rubygem-irb | 1.2.6-137.module+el8.4.0+629+f8f0bf91 |
| 8 | rubygem-rake | 13.0.1-137.module+el8.4.0+629+f8f0bf91 |
110 more rows
ubuntu 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | ruby2-5 | 2.5.1-1ubuntu1.10 |
| 18.04-ESM | ruby2-5 | 2.5.1-1ubuntu1.10 |
| 20.04 | ruby2-7 | 2.7.0-5ubuntu1.5 |
| 20.04-ESM | ruby2-7 | 2.7.0-5ubuntu1.5 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2022:0672
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-32066
- bugzilla.redhat.com https://bugzilla.redhat.com/1980126
- bugzilla.redhat.com https://bugzilla.redhat.com/1980128
- bugzilla.redhat.com https://bugzilla.redhat.com/1980132
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1980126
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1980128
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1980132
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-31799
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-31810
Show all 27 references
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-32066
- errata.almalinux.org https://errata.almalinux.org/8/ALSA-2022-0672.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2022:0672
- github.com https://github.com/ruby/ruby/commit/a21a3b7d23704a01d34bd79d09dc37897e00922a
- github.com https://github.com/ruby/ruby/commit/a21a3b7d23704a01d34bd79d09dc37897e00922a (2.7)
- hackerone.com https://hackerone.com/reports/1178562
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-32066.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2022-0672.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/10/msg00009.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/04/msg00033.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-32066
- security.gentoo.org https://security.gentoo.org/glsa/202401-27
- security.netapp.com https://security.netapp.com/advisory/ntap-20210902-0004/
- ubuntu.com https://ubuntu.com/security/notices/USN-5020-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-32066
- www.oracle.com https://www.oracle.com/security-alerts/cpuapr2022.html
- www.ruby-lang.org https://www.ruby-lang.org/en/news/2021/07/07/starttls-stripping-in-net-imap/
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.