Skip to content
OpenAdvisories
Medium · 5.9 CVE-2021-22947 EUVD-2021-10075GHSA-94jh-wwgf-cmmc

When curl >= 7.20.0 and <= 7.78.0 connects to an IMAP or POP3 server to retrieve data using STARTTLS to upgrade to TLS security, the server…

Published Sep 29, 2021 · Updated Oct 14, 2026 · Assigned by hackerone

Description

When curl >= 7.20.0 and <= 7.78.0 connects to an IMAP or POP3 server to retrieve data using STARTTLS to upgrade to TLS security, the server can respond and send back multiple responses at once that curl caches. curl would then upgrade to TLS but not flush the in-queue of cached responses but instead continue using and trustingthe responses it got *before* the TLS handshake as if they were authenticated.Using this flaw, it allows a Man-In-The-Middle attacker to first inject the fake responses, then pass-through the TLS traffic from the legitimate server and trick curl into sending data back to the user thinking the attacker's injected data comes from the TLS-protected server.

Affected products

VendorProductAffectedFixed
— https://github.com/curl/curl curl 7.20.0 to and including 7.78.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 curl 7.79.1-1 —
Debian 13 curl 7.79.1-1 —
Debian 12 curl 7.79.1-1 —
Debian 11 curl 7.74.0-1.3+deb11u2 DSA-5197-1
Debian 10 curl 7.64.0-4+deb10u3 DLA-3085-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 curl 7.52.1-5+deb9u16 DLA-2773-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS curl 7.74.0-1.3ubuntu2 —
Ubuntu 20.04 LTS curl 7.68.0-1ubuntu2.7 USN-5079-1
Ubuntu 18.04 LTS curl 7.58.0-2ubuntu3.15 USN-5079-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS curl 7.47.0-1ubuntu2.19+esm1 USN-5079-2
Ubuntu Pro 14.04 LTS curl 7.35.0-1ubuntu2.20+esm8 USN-5079-2
ReleasePackageFixed inAdvisory
RHEL 8 curl +3 7.61.1-18.el8_4.2 RHSA-2021:4059
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhel Dotnet 3 rh-dotnet31-curl +2 7.61.1-22.el7_9 RHSA-2022:1354
RHEL 8.2 EUS curl +3 7.61.1-12.el8_2.4 RHSA-2022:0635

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 curl 7.61.1-18.el8_4.2 RLSA-2021:4059
ReleasePackageFixed inAdvisory
SLES 15 SP3 curl 7.66.0-4.27.1 SUSE-SU-2021:3298-1
SLES 15 SP2 curl 7.66.0-4.27.1 SUSE-SU-2021:3298-1
SLES 15 SP1 curl 7.60.0-25.1 SUSE-SU-2021:3297-1
SLES 15 curl 7.60.0-25.1 SUSE-SU-2021:3297-1
SLES 12 SP5 curl 7.60.0-11.28.1 SUSE-SU-2021:3332-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 curl 7.60.0-4.30.1 SUSE-SU-2021:3351-1
SLES 11 curl-openssl1 7.37.0-70.74.1 SUSE-SU-2021:14807-1
SLES for SAP 15 SP1 curl 7.60.0-25.1 SUSE-SU-2021:3297-1
SLES for SAP 15 curl 7.60.0-25.1 SUSE-SU-2021:3297-1
SLES for SAP 12 SP5 curl 7.60.0-11.28.1 SUSE-SU-2021:3332-1
SLES for SAP 12 SP4 curl 7.60.0-4.30.1 SUSE-SU-2021:3351-1
SLE Micro 5.1 curl 7.66.0-4.27.1 SUSE-SU-2021:3298-1
SLE Micro 5.0 curl 7.66.0-4.27.1 SUSE-SU-2021:3298-1
SLE HPC 15 SP1 curl 7.60.0-25.1 SUSE-SU-2021:3297-1
SLE HPC 15 curl 7.60.0-25.1 SUSE-SU-2021:3297-1
SUSE OpenStack Cloud Crowbar 9 curl 7.60.0-4.30.1 SUSE-SU-2021:3351-1
SUSE OpenStack Cloud 9 curl 7.60.0-4.30.1 SUSE-SU-2021:3351-1
SUSE Enterprise Storage 6 curl 7.60.0-25.1 SUSE-SU-2021:3297-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed curl 7.79.1-1.1 openSUSE-SU-2024:10582-1
openSUSE Leap 15.3 curl 7.66.0-4.27.1 openSUSE-SU-2021:3298-1
openSUSE Leap 15.2 curl +1 7.66.0-lp152.3.24.1 openSUSE-SU-2021:1384-1
ReleasePackageFixed inAdvisory
Alpine v3.24 curl 7.79.0-r0 —
Alpine v3.23 curl 7.79.0-r0 —
Alpine v3.22 curl 7.79.0-r0 —
Alpine v3.21 curl 7.79.0-r0 —
Alpine v3.20 curl 7.79.0-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 curl 7.79.0-r0 —
Alpine v3.18 curl 7.79.0-r0 —
Alpine v3.17 curl 7.79.0-r0 —
Alpine v3.16 curl 7.79.0-r0 —
Alpine v3.15 curl 7.79.0-r0 —
Alpine v3.14 curl 7.79.0-r0 —
Alpine v3.13 curl 7.79.0-r0 —
Alpine v3.12 curl 7.79.0-r0 —
Alpine v3.11 curl 7.79.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 curl +2 7.79.1-1.amzn2.0.1 ALAS2-2021-1724

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) curl 7.82.0-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 curl +3 7.61.1-18.el8_4.2 ELSA-2021-4059

Advisories 30

References