Live threats

All CVEs / Ruby-lang

CVE-2021-32066Ruby-lang Ruby

High 7.4 No auth needed

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≥ 2.6.0 ≤ 2.6.7
ruby-langruby≥ 2.7.0 ≤ 2.7.3
ruby-langruby≥ 3.0.0 ≤ 3.0.1
oraclejd_edwards_enterpriseone_tools< 9.2.6.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.