CVE-2021-22890
curl 7.63.0 to and including 7.75.0 includes vulnerability that allows a malicious HTTPS proxy to MITM a connection due to bad handling of TLS 1.3 session tickets. When using a HTTPS proxy and TLS 1.3, libcurl can confuse session tickets arriving from the HTTPS proxy but work as if they arrived from the remote server and then wrongly "short-cut" the host handshake. When confusing the tickets, a HTTPS proxy can trick libcurl to use the wrong session ticket resume for the host and thereby circumvent the server TLS certificate check and make a MITM attack to be possible to perform unnoticed. Note that such a malicious HTTPS proxy needs to provide a certificate that curl will accept for the MITMed server for an attack to work - unless curl has been told to ignore the server certificate check.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | curl | Fixed | 7.68.0-1ubuntu2.5 | UBUNTU-CVE-2021-22890 |
| Ubuntu 16.04 | curl | Not affected vulnerable_code_not_present | ||
| Debian 14 | curl | Fixed | 7.74.0-1.2 | DEBIAN-CVE-2021-22890 |
| Debian 13 | curl | Fixed | 7.74.0-1.2 | DEBIAN-CVE-2021-22890 |
| Debian 12 | curl | Fixed | 7.74.0-1.2 | DEBIAN-CVE-2021-22890 |
| Red Hat Enterprise Linux 9 | curl | Not affected | ||
| Red Hat Enterprise Linux 9 | curl-minimal | Not affected | ||
| Red Hat Enterprise Linux 9 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 9 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libcurl-minimal | Not affected | ||
| Red Hat Enterprise Linux 8 | curl | Not affected | ||
| Red Hat Enterprise Linux 8 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 8 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libcurl-minimal | Not affected | ||
| Red Hat Enterprise Linux 7 | curl | Not affected | ||
| Red Hat Enterprise Linux 7 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 7 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | curl | Not affected | ||
| Red Hat Enterprise Linux 6 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 6 | libcurl-devel | Not affected | ||
| Alpine Linux 3.24 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
| Alpine Linux 3.23 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
| Alpine Linux 3.22 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
| Alpine Linux 3.21 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
| Alpine Linux 3.20 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
| Alpine Linux 3.19 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
| Alpine Linux 3.18 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
| Alpine Linux 3.17 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
| Alpine Linux 3.16 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
| Alpine Linux 3.15 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
| Alpine Linux 3.14 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
| Alpine Linux 3.13 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
| Alpine Linux 3.12 | curl | Fixed | 7.76.0-r0 | ALPINE-CVE-2021-22890 |
What the vendor says
As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- https://github.com/curl/curl: affected: 7.63.0 to and including 7.75.0
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202105-36 (vendor-advisory)
References
- https://hackerone.com/reports/1129529
- https://curl.se/docs/CVE-2021-22890.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ITVWPVGLFISU5BJC2BXBRYSDXTXE2YGC/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KQUIOYX2KUU6FIUZVB5WWZ6JHSSYSQWJ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2ZC5BMIOKLBQJSFCHEDN2G2C2SH274BP/
- https://security.gentoo.org/glsa/202105-36
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://security.netapp.com/advisory/ntap-20210521-0007/
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.