CVE-2021-22897
JSON

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 packageVersionsReported by
https://github.com/curl/curl7.61.0 through 7.76.1CVE List
https://github.com/curl/curl.gitfrom 7.61.0 before 7.77.0, from 9aefbff30d280c60fc9d8cc3e0b2f19fc70a2f28 before bbb71507b7bab52002f9b1e0880bed6a32834511curl
haxx curlfrom 7.61.0 up to 7.76.1NVD
oracle communications_cloud_native_core_binding_support_function1.11.0NVD
oracle communications_cloud_native_core_network_function_cloud_native_environment1.10.0NVD
oracle communications_cloud_native_core_network_repository_function1.15.0, 1.15.1NVD
oracle communications_cloud_native_core_network_slice_selection_function1.8.0NVD
oracle communications_cloud_native_core_service_communication_proxy1.15.0NVD
oracle essbasebefore 11.1.2.4.047, from 21.0 before 21.3NVD
oracle mysql_serverup to 5.7.34, from 8.0.0 up to 8.0.25NVD
netapp cloud_backupNot specifiedNVD
netapp solidfire,_enterprise_sds_&_hci_storage_nodeNot specifiedNVD

All scores

CISA-ADP5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
curllow rating
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:N/A:N

Classification

CWE-668CWE-840

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2021-22897 changed 2026-10-14CVE Terms of Use
curlCURL-CVE-2021-22897 changed 2026-10-25MIT
NVDCVE-2021-22897 changed 2026-10-14Public domain