Vulnerability · Published Jun 11, 2021 · Assigned by hackerone
CVE-2021-22897
Medium 5.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 4.3% (higher than 91% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
curl 7.61.0 through 7.76.1 suffers from exposure of data element to wrong session due to a mistake in the code for CURLOPT_SSL_CIPHER_LIST when libcurl is built to use the Schannel TLS library. The selected cipher set was stored in a single "static" variable in the library, which has the surprising side-effect that if an application sets up multiple concurrent transfers, the last one that sets the ciphers will accidentally control the set used by all transfers. In a worst-case scenario, this weakens transport security significantly.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | curl | 0 | ALPINE-CVE-2021-22897 |
| Alpine:v3.21 | curl | 0 | ALPINE-CVE-2021-22897 |
| Alpine:v3.22 | curl | 0 | ALPINE-CVE-2021-22897 |
| Alpine:v3.23 | curl | 0 | ALPINE-CVE-2021-22897 |
| Alpine:v3.24 | curl | 0 | ALPINE-CVE-2021-22897 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | 7.61.0 through 7.76.1 |
Weakness: CWE-840 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
References
- https://hackerone.com/reports/1172857 x_refsource_MISC
- https://curl.se/docs/CVE-2021-22897.html x_refsource_MISC
- https://github.com/curl/curl/commit/bbb71507b7bab52002f9b1e0880bed6a32834511 x_refsource_MISC
- https://www.oracle.com//security-alerts/cpujul2021.html x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210727-0007/ x_refsource_CONFIRM
- https://www.oracle.com/security-alerts/cpuapr2022.html x_refsource_MISC
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf x_refsource_CONFIRM
- https://cert-portal.siemens.com/productcert/html/ssa-389290.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html