CVE-2021-32066

NameCVE-2021-32066
DescriptionAn 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."
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-2780-1, DLA-3408-1, DSA-5066-1
Debian Bugs990815, 1014818

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
jruby (PTS)bookworm9.3.9.0+ds-8fixed
sid, trixie9.4.8.0+ds-1fixed
ruby2.7 (PTS)bullseye2.7.4-1+deb11u1fixed
bullseye (security)2.7.4-1+deb11u2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jrubysourcebuster9.1.17.0-3+deb10u1DLA-3408-1
jrubysource(unstable)9.3.9.0+ds-11014818
ruby2.3sourcestretch2.3.3-1+deb9u10DLA-2780-1
ruby2.3source(unstable)(unfixed)
ruby2.5sourcebuster2.5.5-3+deb10u4DSA-5066-1
ruby2.5source(unstable)(unfixed)
ruby2.7source(unstable)2.7.4-1990815

Notes

[stretch] - jruby <no-dsa> (Minor issue)
https://www.ruby-lang.org/en/news/2021/07/07/starttls-stripping-in-net-imap/
https://github.com/ruby/ruby/commit/a21a3b7d23704a01d34bd79d09dc37897e00922a (2.7)

Search for package or bug name: Reporting problems