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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | curl | 7.78.0-r0 | ALPINE-CVE-2021-22924 |
| Alpine:v3.21 | curl | 7.78.0-r0 | ALPINE-CVE-2021-22924 |
| Alpine:v3.22 | curl | 7.78.0-r0 | ALPINE-CVE-2021-22924 |
| Alpine:v3.23 | curl | 7.78.0-r0 | ALPINE-CVE-2021-22924 |
| Alpine:v3.24 | curl | 7.78.0-r0 | ALPINE-CVE-2021-22924 |
| Debian:12 | curl | 7.79.1-1 | DEBIAN-CVE-2021-22924 |
| Debian:13 | curl | 7.79.1-1 | DEBIAN-CVE-2021-22924 |
| Debian:14 | curl | 7.79.1-1 | DEBIAN-CVE-2021-22924 |
| Rocky Linux:8 | curl | 0:7.61.1-18.el8_4.1 | RLSA-2021:3582 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://hackerone.com/reports/1223565 x_refsource_MISC
- FEDORA-2021-5d21b90a30 vendor-advisory, x_refsource_FEDORA
- [debian-lts-announce] 20210813 [SECURITY] [DLA 2734-1] curl security update mailing-list, x_refsource_MLIST
- [kafka-dev] 20210831 Security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image mailing-list, x_refsource_MLIST
- [kafka-users] 20210831 Security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image mailing-list, x_refsource_MLIST
- [kafka-users] 20210901 Re: [EXTERNAL] Re: Security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image mailing-list, x_refsource_MLIST
- [kafka-dev] 20210901 Re: [EXTERNAL] Re: Security vulnerabilities in kafka:2.13-2.6.0/2.7.0 docker image mailing-list, x_refsource_MLIST
- https://www.oracle.com/security-alerts/cpuoct2021.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210902-0003/ x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf x_refsource_CONFIRM
- https://cert-portal.siemens.com/productcert/pdf/ssa-732250.pdf x_refsource_CONFIRM
- https://cert-portal.siemens.com/productcert/pdf/ssa-484086.pdf x_refsource_CONFIRM
- DSA-5197 vendor-advisory, x_refsource_DEBIAN
- [debian-lts-announce] 20220828 [SECURITY] [DLA 3085-1] curl security update mailing-list, x_refsource_MLIST
- https://cert-portal.siemens.com/productcert/html/ssa-389290.html
- https://cert-portal.siemens.com/productcert/html/ssa-732250.html
- https://cert-portal.siemens.com/productcert/html/ssa-484086.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html