Vulnerability · Published Apr 1, 2021 · Assigned by hackerone

CVE-2021-22890

Medium 4.3

In plain English

A medium-severity security flaw in https://github.com/curl/curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 3.1% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)3.1%top 12.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20curl7.76.0-r0ALPINE-CVE-2021-22890
Alpine:v3.21curl7.76.0-r0ALPINE-CVE-2021-22890
Alpine:v3.22curl7.76.0-r0ALPINE-CVE-2021-22890
Alpine:v3.23curl7.76.0-r0ALPINE-CVE-2021-22890
Alpine:v3.24curl7.76.0-r0ALPINE-CVE-2021-22890
Debian:12curl7.74.0-1.2DEBIAN-CVE-2021-22890
Debian:13curl7.74.0-1.2DEBIAN-CVE-2021-22890
Debian:14curl7.74.0-1.2DEBIAN-CVE-2021-22890

Affected products (as reported)

VendorProductVersions
n/a https://github.com/curl/curl 7.63.0 to and including 7.75.0

Weakness: CWE-300 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

References