CVE-2021-22924
JSON

3.7low

Bad connection reuse due to flawed path name checks

Severity
3.7low CVSS:3.1 by CISA-ADP
Exploit likelihood
5.95% (higher than 93% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
hackerone
Also known as
CURL-CVE-2021-22924

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

Product or packageVersionsReported by
https://github.com/curl/curlcurl 7.10.4 to and include curl 7.77.0CVE List
https://github.com/curl/curl.gitfrom 7.10.4 before 7.78.0, from 89721ff04af70f527baae1368f3b992777bf6526 before 5ea3145850ebff1dc2b13d17440300a01ca38161curl
haxx libcurlfrom 7.10.4 before 7.77.0NVD
fedoraproject fedora33NVD
debian debian_linux9.0, 10.0, 11.0NVD
netapp cloud_backupNot specifiedNVD
netapp clustered_data_ontapNot specifiedNVD
netapp solidfire_&_hci_management_nodeNot specifiedNVD
netapp solidfire_baseboard_management_controller_firmwareNot specifiedNVD
oracle mysql_serverfrom 5.7.0 up to 5.7.36, from 8.0.0 up to 8.0.26NVD
oracle peoplesoft_enterprise_peopletools8.57, 8.58, 8.59NVD
siemens sinec_infrastructure_network_servicesbefore 1.0.1.1NVD

All scores

CISA-ADP3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
curlmedium rating
NVD3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/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-20CWE-706

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

What each source says

CVE List

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.

curl

libcurl keeps previously used connections in a connection pool for subsequent transfers to reuse, if one of them matches the setup.

Due to errors in the logic, the config matching function did not take 'issuer cert' 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 can even vary depending on used file systems.

The comparison also did not include the 'issuer cert' which a transfer can set to qualify how to verify the server certificate.

NVD (es)

libcurl mantiene las conexiones usadas previamente en un pool de conexiones para reusarlas en posteriores transferencias, si una de ellas coincide con la configuración. Debido a errores en la lógica, la función de coincidencia de la configuración no tenía en cuenta "issuercert" y comparaba las rutas implicadas *sin tener en cuenta el caso*, que podía conllevar a que libcurl reusara conexiones erróneas. Las rutas de los archivos son, o pueden ser, casos confidenciales en muchos sistemas, pero no en todos, y pueden incluso variar dependiendo de los sistemas de archivos usados. La comparación tampoco incluía el "issuercert" que una transferencia puede ajustar para calificar cómo verificar el certificado del servidor

References

https://hackerone.com/reports/1223565exploit, issue-tracking, patch, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FRUCW2UVNYUDZF72DQLFQR4PJEC6CF7V/mailing-list, third-party-advisory, vendor-advisory
https://lists.debian.org/debian-lts-announce/2021/08/msg00017.htmlmailing-list, third-party-advisory
https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%3Cdev.kafka.apache.org%3Emailing-list, third-party-advisory
https://lists.apache.org/thread.html/r61db8e7dcb56dc000a5387a88f7a473bacec5ee01b9ff3f55308aacc%40%3Cusers.kafka.apache.org%3Emailing-list, third-party-advisory
https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%3Cusers.kafka.apache.org%3Emailing-list, third-party-advisory
https://lists.apache.org/thread.html/rbf4ce74b0d1fa9810dec50ba3ace0caeea677af7c27a97111c06ccb7%40%3Cdev.kafka.apache.org%3Emailing-list, third-party-advisory
https://www.oracle.com/security-alerts/cpuoct2021.htmlpatch, third-party-advisory
https://security.netapp.com/advisory/ntap-20210902-0003/third-party-advisory
https://www.oracle.com/security-alerts/cpujan2022.htmlpatch, third-party-advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdfpatch, third-party-advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-732250.pdfthird-party-advisory

Sources

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