CVE-2021-32066Ruby-lang Ruby
High 7.4 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Ruby We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.4
- EPSS
- 2.9% probability of exploitation in 30 days · percentile 88
- Auth required
- No
- Published
- Aug 1, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-755
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
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."
What to do
- Apply the vendor's security update for Ruby.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | ruby | ≥ 2.6.0 ≤ 2.6.7 |
| ruby-lang | ruby | ≥ 2.7.0 ≤ 2.7.3 |
| ruby-lang | ruby | ≥ 3.0.0 ≤ 3.0.1 |
| oracle | jd_edwards_enterpriseone_tools | < 9.2.6.1 |
Official advisories
- libruby4_0-4_0-4.0.0~preview2-1.1 on GA media · SUSE · openSUSE-SU-2025:15819-1 · Dec 12, 2025 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- hackerone.com Exploit Patch Third Party Advisory
- lists.debian.org Third Party Advisory
- lists.debian.org
- security.gentoo.org
- security.netapp.com Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.ruby-lang.org Vendor Advisory