{"id":"CVE-2021-22901","aliases":["CVE-2021-22901","CURL-CVE-2021-22901"],"related":[],"kind":"vulnerability","state":"published","title":"TLS session caching disaster","summary":"curl 7.75.0 through 7.76.1 suffers from a use-after-free vulnerability resulting in already freed memory being used when a TLS 1.3 session ticket arrives over a connection. A malicious server can use this in rare unfortunate circumstances to potentially reach remote code execution in the client. When libcurl at run-time sets up support for TLS 1.3 session tickets on a connection using OpenSSL, it stores pointers to the transfer in-memory object for later retrieval when a session ticket arrives. If the connection is used by multiple transfers (like with a reused HTTP/1.1 connection or multiplexed HTTP/2 connection) that first transfer object might be freed before the new session is established on that connection and then the function will access a memory buffer that might be freed. When using that memory, libcurl might even call a function pointer in the object, making it possible for a remote code execution if the server could somehow manage to get crafted memory content into the correct place in memory.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"curl 7.75.0 through 7.76.1 suffers from a use-after-free vulnerability resulting in already freed memory being used when a TLS 1.3 session ticket arrives over a connection. A malicious server can use this in rare unfortunate circumstances to potentially reach remote code execution in the client. When libcurl at run-time sets up support for TLS 1.3 session tickets on a connection using OpenSSL, it stores pointers to the transfer in-memory object for later retrieval when a session ticket arrives. If the connection is used by multiple transfers (like with a reused HTTP/1.1 connection or multiplexed HTTP/2 connection) that first transfer object might be freed before the new session is established on that connection and then the function will access a memory buffer that might be freed. When using that memory, libcurl might even call a function pointer in the object, making it possible for a remote code execution if the server could somehow manage to get crafted memory content into the correct place in memory.","source":"cvelist"},{"lang":"en","text":"libcurl can be tricked into using already freed memory when a new TLS session\nis negotiated or a client certificate is requested on an existing connection.\nFor example, this can happen when a TLS server requests a client certificate\non a connection that was established without one. A malicious server can use\nthis in rare unfortunate circumstances to potentially reach remote code\nexecution in the client.\n\nOpenSSL can declare a \"new session\" for different reasons, including the\ninitial TLS handshake completion, TLS 1.2 (or earlier) renegotiation, or TLS\n1.3 client certificate requests. When libcurl at runtime sets up support for\nsession ID caching on a connection using OpenSSL, it stores pointers to the\ntransfer in-memory object for later retrieval when OpenSSL considers a new\nsession to be established.\n\nHowever, if the connection is used by multiple transfers (like with a reused\nHTTP/1.1 connection or multiplexed HTTP/2 connection) that first transfer\nobject might be freed before the new session is established on that connection\nand then the function accesses a memory buffer that might be freed. When using\nthat memory, libcurl might even call a function pointer in the object, making\nit possible for a remote code execution if the server could somehow manage to\nget crafted memory content into the correct place in memory.","format":"markdown","source":"curl"},{"lang":"es","text":"curl versiones 7.75.0 hasta 7.76.1 sufre de una vulnerabilidad de uso de la memoria previamente liberada que resulta en el uso de memoria ya liberada cuando un ticket de sesión TLS 1.3 llega a través de una conexión. Un servidor malicioso puede usar esto en raras circunstancias desafortunadas para alcanzar potencialmente la ejecución de código remota en el cliente. Cuando libcurl en tiempo de ejecución configura el soporte para tickets de sesión TLS 1.3 en una conexión usando OpenSSL, almacena punteros al objeto de transferencia en memoria para su posterior recuperación cuando llega un ticket de sesión. Si la conexión es usada por múltiples transferencias (como en el caso de una conexión HTTP/1.1 reutilizada o una conexión HTTP/2 multiplexada) ese primer objeto de transferencia podría ser liberado antes de que se establezca la nueva sesión en esa conexión y entonces la función accederá a un búfer de memoria que podría ser liberado. Al utilizar esa memoria, libcurl podría incluso llamar a un puntero de función en el objeto, haciendo posible una ejecución de código remota si el servidor pudiera de alguna manera conseguir el contenido de la memoria diseñada en el lugar correcto de la memoria","source":"nvd"}],"published":"2021-05-26T08:00:00.000Z","modified":"2026-10-25T01:04:44.135Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"curl","scheme":"rating","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"version":"7.75.0 through 7.76.1","status":"affected"}],"product":"https://github.com/curl/curl","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"7.75.0","status":"affected","fixed":"7.77.0"},{"type":"git","introduced":"a304051620b92e12b6b1b4e19edc57b34ea332b6","status":"affected","fixed":"7f4a9a9b2a49547eae24d2e19bc5c346e9026479"}],"repo":"https://github.com/curl/curl.git","source":"curl"},{"ranges":[{"status":"affected","introduced":"7.75.0","lastAffected":"7.76.1"}],"vendor":"haxx","product":"curl","cpe":"cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.11.0"}],"vendor":"oracle","product":"communications_cloud_native_core_binding_support_function","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_binding_support_function:1.11.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.10.0"}],"vendor":"oracle","product":"communications_cloud_native_core_network_function_cloud_native_environment","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_network_function_cloud_native_environment:1.10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.15.0"},{"status":"affected","version":"1.15.1"}],"vendor":"oracle","product":"communications_cloud_native_core_network_repository_function","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_network_repository_function:1.15.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.8.0"}],"vendor":"oracle","product":"communications_cloud_native_core_network_slice_selection_function","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_network_slice_selection_function:1.8.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"1.15.0"}],"vendor":"oracle","product":"communications_cloud_native_core_service_communication_proxy","cpe":"cpe:2.3:a:oracle:communications_cloud_native_core_service_communication_proxy:1.15.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"11.1.2.4.047"},{"status":"affected","introduced":"21.0","fixed":"21.3"}],"vendor":"oracle","product":"essbase","cpe":"cpe:2.3:a:oracle:essbase:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","lastAffected":"5.7.34"},{"status":"affected","introduced":"8.0.0","lastAffected":"8.0.25"}],"vendor":"oracle","product":"mysql_server","cpe":"cpe:2.3:a:oracle:mysql_server:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"active_iq_unified_manager","cpe":"cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vsphere:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"cloud_backup","cpe":"cpe:2.3:a:netapp:cloud_backup:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"oncommand_insight","cpe":"cpe:2.3:a:netapp:oncommand_insight:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"oncommand_workflow_automation","cpe":"cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"snapcenter","cpe":"cpe:2.3:a:netapp:snapcenter:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"solidfire,_enterprise_sds_&_hci_storage_node","cpe":"cpe:2.3:a:netapp:solidfire\\,_enterprise_sds_\\&_hci_storage_node:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"solidfire_&_hci_management_node","cpe":"cpe:2.3:a:netapp:solidfire_\\&_hci_management_node:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"solidfire_baseboard_management_controller_firmware","cpe":"cpe:2.3:o:netapp:solidfire_baseboard_management_controller_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"hci_compute_node_firmware","cpe":"cpe:2.3:o:netapp:hci_compute_node_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h300e_firmware","cpe":"cpe:2.3:o:netapp:h300e_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h300s_firmware","cpe":"cpe:2.3:o:netapp:h300s_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h410s_firmware","cpe":"cpe:2.3:o:netapp:h410s_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h500e_firmware","cpe":"cpe:2.3:o:netapp:h500e_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h500s_firmware","cpe":"cpe:2.3:o:netapp:h500s_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h700e_firmware","cpe":"cpe:2.3:o:netapp:h700e_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h700s_firmware","cpe":"cpe:2.3:o:netapp:h700s_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.0.1.1"}],"vendor":"siemens","product":"sinec_infrastructure_network_services","cpe":"cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"8.2.0","fixed":"8.2.12"},{"status":"affected","introduced":"9.0.0","fixed":"9.0.6"},{"status":"affected","version":"9.1.0"}],"vendor":"splunk","product":"universal_forwarder","cpe":"cpe:2.3:a:splunk:universal_forwarder:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://hackerone.com/reports/1180380","tags":["exploit","issue-tracking","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://curl.se/docs/CVE-2021-22901.html","tags":["exploit","patch","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/curl/curl/commit/7f4a9a9b2a49547eae24d2e19bc5c346e9026479","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210723-0001/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210727-0007/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","tags":["patch","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-732250.pdf","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-389290.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-732250.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[],"sources":["cvelist","nvd"]}],"credits":["Harry Sintonen","Daniel Stenberg","Brad Spencer"],"assigner":"hackerone","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-08T20:56:54.242Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-22901","url":"https://www.cve.org/CVERecord?id=CVE-2021-22901","licence":"CVE Terms of Use","modified":"2026-10-14T10:31:25.845Z"},{"source":"curl","name":"curl","id":"CURL-CVE-2021-22901","url":"https://osv.dev/vulnerability/CURL-CVE-2021-22901","licence":"MIT","modified":"2026-10-25T01:04:44.135Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-22901","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22901","licence":"Public domain","modified":"2026-10-14T11:16:53.157Z"}],"updatedAt":"2026-11-25T22:58:01.810Z","epss":{"score":0.63477,"percentile":0.99224,"date":"2026-12-01T12:00:22.000Z"}}