Vulnerability · Published Aug 5, 2021 · Assigned by hackerone

CVE-2021-22924

Low 3.7

In plain English

A low-severity improper input validation 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 6.3% (higher than 94% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.7Low
Exploit odds (30 days)6.3%top 6.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official description

libcurl keeps previously used connections in a connection pool for subsequenttransfers to reuse, if one of them matches the setup.Due to errors in the logic, the config matching function did not take 'issuercert' into account and it compared the involved paths *case insensitively*,which could lead to libcurl reusing wrong connections.File paths are, or can be, case sensitive on many systems but not all, and caneven vary depending on used file systems.The comparison also didn't include the 'issuer cert' which a transfer can setto qualify how to verify the server certificate.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20curl7.78.0-r0ALPINE-CVE-2021-22924
Alpine:v3.21curl7.78.0-r0ALPINE-CVE-2021-22924
Alpine:v3.22curl7.78.0-r0ALPINE-CVE-2021-22924
Alpine:v3.23curl7.78.0-r0ALPINE-CVE-2021-22924
Alpine:v3.24curl7.78.0-r0ALPINE-CVE-2021-22924
Debian:12curl7.79.1-1DEBIAN-CVE-2021-22924
Debian:13curl7.79.1-1DEBIAN-CVE-2021-22924
Debian:14curl7.79.1-1DEBIAN-CVE-2021-22924
Rocky Linux:8curl0:7.61.1-18.el8_4.1RLSA-2021:3582

Affected products (as reported)

VendorProductVersions
n/a https://github.com/curl/curl curl 7.10.4 to and include curl 7.77.0

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

References