{
  "threat_severity" : "Moderate",
  "public_date" : "2021-07-07T00:00:00Z",
  "bugzilla" : {
    "description" : "ruby: StartTLS stripping vulnerability in Net::IMAP",
    "id" : "1980128",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1980128"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.4",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N",
    "status" : "verified"
  },
  "cwe" : "CWE-319",
  "details" : [ "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 data sent over the plain text connection." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2021-08-05T00:00:00Z",
    "advisory" : "RHSA-2021:3020",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8",
    "package" : "ruby:2.7-8040020210728141159.522a0ee4"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2022-02-16T00:00:00Z",
    "advisory" : "RHSA-2022:0543",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8",
    "package" : "ruby:2.6-8050020211215144356.c5368500"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2022-02-24T00:00:00Z",
    "advisory" : "RHSA-2022:0672",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8",
    "package" : "ruby:2.5-8050020220216195847.c5368500"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions",
    "release_date" : "2022-02-21T00:00:00Z",
    "advisory" : "RHSA-2022:0581",
    "cpe" : "cpe:/a:redhat:rhel_e4s:8.1",
    "package" : "ruby:2.6-8010020220201152941.c27ad7f8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.2 Extended Update Support",
    "release_date" : "2022-02-21T00:00:00Z",
    "advisory" : "RHSA-2022:0582",
    "cpe" : "cpe:/a:redhat:rhel_eus:8.2",
    "package" : "ruby:2.6-8020020220201131207.4cda2c84"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.4 Extended Update Support",
    "release_date" : "2022-02-16T00:00:00Z",
    "advisory" : "RHSA-2022:0544",
    "cpe" : "cpe:/a:redhat:rhel_eus:8.4",
    "package" : "ruby:2.6-8040020220131135901.522a0ee4"
  }, {
    "product_name" : "Red Hat Software Collections for Red Hat Enterprise Linux 7",
    "release_date" : "2021-09-20T00:00:00Z",
    "advisory" : "RHSA-2021:3559",
    "cpe" : "cpe:/a:redhat:rhel_software_collections:3::el7",
    "package" : "rh-ruby27-ruby-0:2.7.4-130.el7"
  }, {
    "product_name" : "Red Hat Software Collections for Red Hat Enterprise Linux 7",
    "release_date" : "2021-10-25T00:00:00Z",
    "advisory" : "RHSA-2021:3982",
    "cpe" : "cpe:/a:redhat:rhel_software_collections:3::el7",
    "package" : "rh-ruby30-ruby-0:3.0.2-148.el7"
  }, {
    "product_name" : "Red Hat Software Collections for Red Hat Enterprise Linux 7",
    "release_date" : "2022-02-28T00:00:00Z",
    "advisory" : "RHSA-2022:0708",
    "cpe" : "cpe:/a:redhat:rhel_software_collections:3::el7",
    "package" : "rh-ruby26-ruby-0:2.6.9-120.el7"
  }, {
    "product_name" : "Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS",
    "release_date" : "2021-09-20T00:00:00Z",
    "advisory" : "RHSA-2021:3559",
    "cpe" : "cpe:/a:redhat:rhel_software_collections:3::el7",
    "package" : "rh-ruby27-ruby-0:2.7.4-130.el7"
  }, {
    "product_name" : "Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS",
    "release_date" : "2021-10-25T00:00:00Z",
    "advisory" : "RHSA-2021:3982",
    "cpe" : "cpe:/a:redhat:rhel_software_collections:3::el7",
    "package" : "rh-ruby30-ruby-0:3.0.2-148.el7"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "ruby",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "ruby",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Not affected",
    "package_name" : "ruby",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2021-32066\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-32066\nhttps://www.ruby-lang.org/en/news/2021/07/07/starttls-stripping-in-net-imap/" ],
  "name" : "CVE-2021-32066",
  "csaw" : false
}