CVE-2021-32066
published 2021-08-01CVE-2021-32066: 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…
PriorityP347high7.4CVSS 3.1
AVNACHPRNUINSUCHIHAN
EPSS
2.91%
85.2th percentile
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."
Affected
11 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | jruby | < jruby 9.3.9.0+ds-1 (bookworm) | jruby 9.3.9.0+ds-1 (bookworm) |
| debian | ruby2.7 | < jruby 9.3.9.0+ds-1 (bookworm) | jruby 9.3.9.0+ds-1 (bookworm) |
| jruby | jruby | >= 0 < 9.3.9.0+ds-1 | 9.3.9.0+ds-1 |
| jruby | jruby | >= 0 < 9.3.9.0+ds-1 | 9.3.9.0+ds-1 |
| jruby | jruby | >= 0 < 9.3.9.0+ds-1 | 9.3.9.0+ds-1 |
| msrc | cbl2_ruby_2.7.4-1_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_ruby_2.6.7-2_on_cbl_mariner_1.0 | — | — |
| oracle | jd_edwards_enterpriseone_tools | < 9.2.6.1 | 9.2.6.1 |
| 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 | — |
CVSS provenance
nvdv3.17.4HIGHCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
nvdv2.05.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:N
osv7.4HIGH
vendor_debian7.4HIGH
vendor_msrc7.4HIGH
vendor_oracle7.4HIGH
vendor_redhat7.4HIGH
vendor_ubuntu7.0HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Oracle
Oracle Oracle JD Edwards Risk Matrix: E1 Dev Platform Tech-Cloud (Ruby) — CVE-2021-32066
vendor_oracle·2022-04-15·CVSS 7.4
CVE-2021-32066 [HIGH] Oracle Oracle JD Edwards Risk Matrix: E1 Dev Platform Tech-Cloud (Ruby) — CVE-2021-32066
Oracle Oracle JD Edwards Risk Matrix: E1 Dev Platform Tech-Cloud (Ruby) vulnerability
CVE: CVE-2021-32066
CVSS: 7.4
Protocol: HTTP
Remote exploit: Yes
Affected versions: Network
Advisory: cpuapr2022 (APR 2022)
Microsoft
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-
vendor_msrc·2021-08-10·CVSS 7.4
CVE-2021-32066 [HIGH] CWE-755 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-
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."
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transpar
Ubuntu
Ruby vulnerabilities
vendor_ubuntu·2021-07-21·CVSS 7.0
CVE-2021-31799 [HIGH] Ruby vulnerabilities
Title: Ruby vulnerabilities
Summary: Several security issues were fixed in Ruby.
It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to execute arbitrary code.
(CVE-2021-31799)
It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to conduct
port scans and service banner extractions. This issue only affected
Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 20.10, and Ubuntu 21.04. (CVE-2021-31810)
It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to perform
machine-in-the-middle attackers to bypass the TLS protection.
(CVE-2021-32066)
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
ruby: StartTLS stripping vulnerability in Net::IMAP
vendor_redhat·2021-07-07·CVSS 7.4
CVE-2021-32066 [HIGH] CWE-319 ruby: StartTLS stripping vulnerability in Net::IMAP
ruby: StartTLS stripping vulnerability in Net::IMAP
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."
Ruby's Net::IMAP module did not raise an exception when receiving an unexpected response to the STARTTLS command and the connection was not upgraded to use TLS. A man-in-the-middle attacker could use this flaw to prevent Ruby applications using Net::IMAP to enable TLS encryption for a connection to an IMAP server and subsequently eavesdrop on or modify da
Debian
CVE-2021-32066: jruby - An issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x thro...
vendor_debian·2021·CVSS 7.4
CVE-2021-32066 [HIGH] CVE-2021-32066: jruby - An issue was discovered in Ruby through 2.6.7, 2.7.x through 2.7.3, and 3.x thro...
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."
Scope: local
bookworm: resolved (fixed in 9.3.9.0+ds-1)
forky: resolved (fixed in 9.3.9.0+ds-1)
sid: resolved (fixed in 9.3.9.0+ds-1)
trixie: resolved (fixed in 9.3.9.0+ds-1)
GHSA
GHSA-gx49-h5r3-q3xj: An issue was discovered in Ruby through 2
ghsa_unreviewed·2022-05-24
CVE-2021-32066 [HIGH] CWE-326 GHSA-gx49-h5r3-q3xj: An issue was discovered in Ruby through 2
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."
OSV
CVE-2021-32066: An issue was discovered in Ruby through 2
osv·2021-08-01·CVSS 7.4
CVE-2021-32066 [HIGH] CVE-2021-32066: An issue was discovered in Ruby through 2
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."
OSV
ruby2.3, ruby2.5, ruby2.7 vulnerabilities
osv·2021-07-21·CVSS 7.0
CVE-2021-31799 [HIGH] ruby2.3, ruby2.5, ruby2.7 vulnerabilities
ruby2.3, ruby2.5, ruby2.7 vulnerabilities
It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to execute arbitrary code.
(CVE-2021-31799)
It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to conduct
port scans and service banner extractions. This issue only affected
Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 20.10, and Ubuntu 21.04. (CVE-2021-31810)
It was discovered that Ruby incorrectly handled certain inputs.
An attacker could possibly use this issue to perform
machine-in-the-middle attackers to bypass the TLS protection.
(CVE-2021-32066)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/ruby/ruby/commit/a21a3b7d23704a01d34bd79d09dc37897e00922ahttps://hackerone.com/reports/1178562https://lists.debian.org/debian-lts-announce/2021/10/msg00009.htmlhttps://lists.debian.org/debian-lts-announce/2023/04/msg00033.htmlhttps://security.gentoo.org/glsa/202401-27https://security.netapp.com/advisory/ntap-20210902-0004/https://www.oracle.com/security-alerts/cpuapr2022.htmlhttps://www.ruby-lang.org/en/news/2021/07/07/starttls-stripping-in-net-imap/https://github.com/ruby/ruby/commit/a21a3b7d23704a01d34bd79d09dc37897e00922ahttps://hackerone.com/reports/1178562https://lists.debian.org/debian-lts-announce/2021/10/msg00009.htmlhttps://lists.debian.org/debian-lts-announce/2023/04/msg00033.htmlhttps://security.gentoo.org/glsa/202401-27https://security.netapp.com/advisory/ntap-20210902-0004/https://www.oracle.com/security-alerts/cpuapr2022.htmlhttps://www.ruby-lang.org/en/news/2021/07/07/starttls-stripping-in-net-imap/
2021-08-01
Published