5.3medium
Schannel cipher selection surprise
- Severity
- 5.3medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 4.25% (higher than 91% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- CURL-CVE-2021-22897
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
| Product or package | Versions | Reported by |
|---|---|---|
| https://github.com/curl/curl | 7.61.0 through 7.76.1 | CVE List |
| https://github.com/curl/curl.git | from 7.61.0 before 7.77.0, from 9aefbff30d280c60fc9d8cc3e0b2f19fc70a2f28 before bbb71507b7bab52002f9b1e0880bed6a32834511 | curl |
| haxx curl | from 7.61.0 up to 7.76.1 | NVD |
| oracle communications_cloud_native_core_binding_support_function | 1.11.0 | NVD |
| oracle communications_cloud_native_core_network_function_cloud_native_environment | 1.10.0 | NVD |
| oracle communications_cloud_native_core_network_repository_function | 1.15.0, 1.15.1 | NVD |
| oracle communications_cloud_native_core_network_slice_selection_function | 1.8.0 | NVD |
| oracle communications_cloud_native_core_service_communication_proxy | 1.15.0 | NVD |
| oracle essbase | before 11.1.2.4.047, from 21.0 before 21.3 | NVD |
| oracle mysql_server | up to 5.7.34, from 8.0.0 up to 8.0.25 | NVD |
| netapp cloud_backup | Not specified | NVD |
| netapp solidfire,_enterprise_sds_&_hci_storage_node | Not specified | NVD |
| netapp solidfire_&_hci_management_node | Not specified | NVD |
| netapp solidfire_baseboard_management_controller_firmware | Not specified | NVD |
| netapp hci_compute_node_firmware | Not specified | NVD |
| netapp h300e_firmware | Not specified | NVD |
| netapp h300s_firmware | Not specified | NVD |
| netapp h410s_firmware | Not specified | NVD |
| netapp h500e_firmware | Not specified | NVD |
| netapp h500s_firmware | Not specified | NVD |
| netapp h700e_firmware | Not specified | NVD |
| netapp h700s_firmware | Not specified | NVD |
| siemens sinec_infrastructure_network_services | before 1.0.1.1 | NVD |
| splunk universal_forwarder | from 8.2.0 before 8.2.12, from 9.0.0 before 9.0.6, 9.1.0 | NVD |
All scores
| CISA-ADP | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| curl | low rating | |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
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.
curl
libcurl lets applications specify which specific TLS ciphers to use in
transfers, using the option called CURLOPT_SSL_CIPHER_LIST. The cipher
selection is used for the TLS negotiation when a transfer is done involving
any of the TLS based transfer protocols libcurl supports, such as HTTPS, FTPS,
IMAPS, POP3S, SMTPS etc.
Due to a mistake in the code, 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 accidentally controls the set used by all transfers. In a worst-case scenario, this weakens transport security significantly.
NVD (es)
curl versiones 7.61.0 hasta 7.76.1, sufre de exposición de un elemento de datos a una sesión equivocada debido a un error en el código para la función CURLOPT_SSL_CIPHER_LIST cuando libcurl es construído para usar la biblioteca TLS de Schannel. El ajuste de cifrado seleccionado se almacenaba en una única variable "static" en la biblioteca, lo que tiene el sorprendente efecto secundario de que si una aplicación establece múltiples transferencias concurrentes, la última que ajusta los cifrados controlará accidentalmente el ajuste usado por todas las transferencias. En el peor de los casos, esto debilita significativamente la seguridad del transporte
References
| https://hackerone.com/reports/1172857 | exploit, issue-tracking, third-party-advisory | |
| https://curl.se/docs/CVE-2021-22897.html | patch, vendor-advisory | |
| https://github.com/curl/curl/commit/bbb71507b7bab52002f9b1e0880bed6a32834511 | patch, third-party-advisory | |
| https://www.oracle.com//security-alerts/cpujul2021.html | patch, third-party-advisory | |
| https://www.oracle.com/security-alerts/cpujan2022.html | patch, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20210727-0007/ | third-party-advisory | |
| https://www.oracle.com/security-alerts/cpuapr2022.html | patch, third-party-advisory | |
| https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf | patch, third-party-advisory | |
| https://cert-portal.siemens.com/productcert/html/ssa-389290.html | ||
| https://cert-portal.siemens.com/productcert/html/ssa-398330.html | ||
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-22897 changed 2026-10-14 | CVE Terms of Use |
| curl | CURL-CVE-2021-22897 changed 2026-10-25 | MIT |
| NVD | CVE-2021-22897 changed 2026-10-14 | Public domain |