CVE-2021-32066
Reported by mitre · Published August 1, 2021
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."
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rubygem-bigdecimal | Amazon Linux | 1.2.0-36.amzn2.0.10 |
| ruby-doc | Amazon Linux | 2.0.0.648-36.amzn2.0.10 |
| ruby-libs | Amazon Linux | 2.0.0.648-36.amzn2.0.10 |
| rubygems | Amazon Linux | 2.0.14.1-36.amzn2.0.10 |
| ruby | Alpine | 2.7.4-r0, 2.6.8-r0 |
| jruby | Arch Linux | 9.3.0.0-1 |
| ruby | Bitnami | 3.0.2, 2.7.4, 2.6.8 |
| ruby-devel | Amazon Linux | 2.0.0.648-36.amzn2.0.10 |
| ruby | Amazon Linux | 2.0.0.648-36.amzn2.0.10 |
| rubygems-devel | Amazon Linux | 2.0.14.1-36.amzn2.0.10 |
| ruby-tcltk | Amazon Linux | 2.0.0.648-36.amzn2.0.10 |
| rubygem-psych | Amazon Linux | 2.0.0-36.amzn2.0.10 |
5 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | rubygem-bigdecimal | 0 |
| amazon:2 | ruby-doc | 0 |
| amazon:2 | ruby-libs | 0 |
| amazon:2 | rubygems | 0 |
| alpine | ruby | 0, 0 |
| arch | jruby | 0 |
| amazon:2 | ruby-devel | 0 |
| amazon:2 | ruby | 0 |
| amazon:2 | rubygems-devel | 0 |
| amazon:2 | ruby-tcltk | 0 |
| amazon:2 | rubygem-psych | 0 |
| arch | ruby | 0 |
| amazon:2 | rubygem-io-console | 0 |
| amazon:2 | rubygem-minitest | 0 |
| amazon:2 | ruby-irb | 0 |
| n/a | n/a | * |
| amazon:2 | rubygem-rake | 0 |
| amazon:2 | rubygem-rdoc | 0 |
| amazon:2 | rubygem-json | 0 |
Timeline
- Jul 8, 2021 PoC Published
- Aug 1, 2021 CVE Published
- Aug 2, 2021 EPSS Score (30 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (13 in total, the first dated here)
- Mar 7, 2026 Security Advisory (19 in total, the first dated here)
- Aug 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-32066
vulnetix vdb fixes CVE-2021-32066
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32066/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20211013 [SECURITY] [DLA 2780-1] ruby2.3 security update mailing-list
- [debian-lts-announce] 20230430 [SECURITY] [DLA 3408-1] jruby security update mailing-list
- GLSA-202401-27 vendor-advisory