PT-2021-3883 · Ruby+10 · Ruby+10

Published

2021-04-28

·

Updated

2025-12-12

·

CVE-2021-32066

CVSS v3.1

7.4

High

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions Ruby versions 2.6.7 and earlier, 2.7.x through 2.7.3, and 3.x through 3.0.1
Description The issue is related to the implementation of the Net::IMAP class in the Ruby interpreter, specifically with errors in the certificate authentication procedure when handling the STARTTLS command. This might allow a remote attacker to perform a man-in-the-middle attack by blocking the StartTLS command, also known as a "StartTLS stripping attack".
Recommendations For Ruby versions 2.6.7 and earlier: update to a version later than 2.6.7. For Ruby versions 2.7.x through 2.7.3: update to a version later than 2.7.3. For Ruby versions 3.x through 3.0.1: update to a version later than 3.0.1. As a temporary workaround, consider disabling the Net::IMAP class until a patch is available. Restrict access to the STARTTLS command to minimize the risk of exploitation.

Exploit

Fix

Improper Certificate Validation

Cleartext Transmission of Sensitive Information

Improper Handling of Exceptional Conditions

Weakness Enumeration

Related Identifiers

ALSA-2021:3020
ALSA-2022:0543
ALSA-2022:0672
ALT-PU-2021-2676
ALT-PU-2021-3629
AZL-6861
BDU:2021-04264
BIT-RUBY-2021-32066
BIT-RUBY-MIN-2021-32066
CESA-2021_3020
CESA-2022_0543
CESA-2022_0672
CVE-2021-32066
DLA-2780-1
DLA-3408-1
DSA-5066-1
MGASA-2021-0579
OESA-2021-1306
OPENSUSE-SU-2021:1535-1
OPENSUSE-SU-2021:3838-1
OPENSUSE-SU-2021_1535-1
OPENSUSE-SU-2021_3838-1
OPENSUSE-SU-2022_1512-1
OPENSUSE-SU-2024:11622-1
OPENSUSE-SU-2024:11623-1
OPENSUSE-SU-2024:11786-1
OPENSUSE-SU-2024:12712-1
OPENSUSE-SU-2024:13623-1
OPENSUSE-SU-2025:14621-1
OPENSUSE-SU-2025:15819-1
RHSA-2021:3020
RHSA-2021:3559
RHSA-2021:3982
RHSA-2021_3020
RHSA-2022:0543
RHSA-2022:0544
RHSA-2022:0581
RHSA-2022:0582
RHSA-2022:0672
RHSA-2022:0708
RHSA-2022_0543
RHSA-2022_0672
RLSA-2021:3020
RLSA-2022:0543
RLSA-2022:0672
SUSE-SU-2021:3837-1
SUSE-SU-2021:3838-1
SUSE-SU-2022:15034-1
SUSE-SU-2022:1512-1
SUSE-SU-2022_1512-1
USN-5020-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Red Hat
Red Os
Rocky Linux
Ruby
Suse
Ubuntu