CVE-2024-2466
JSON

6.5medium

TLS certificate check bypass with mbedTLS

Severity
6.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
1.45% (higher than 74% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
curl
Also known as
CURL-CVE-2024-2466

Description

libcurl did not check the server certificate of TLS connections done to a host specified as an IP address, when built to use mbedTLS. libcurl would wrongly avoid using the set hostname function when the specified hostname was given as an IP address, therefore completely skipping the certificate check. This affects all uses of TLS protocols (HTTPS, FTPS, IMAPS, POPS3, SMTPS, etc).

Affected

Product or packageVersionsReported by
curl curlfrom 8.6.0 up to 8.6.0, from 8.5.0 up to 8.5.0CVE List
curl libcurlfrom 8.5.0 up to 8.6.0CVE List
https://github.com/curl/curl.gitfrom 8.5.0 before 8.7.0, from fa714830e92cba7b16b9d3f2cc92a72ee9d821fa before 3d0fd382a29b95561b90b7ea3e7eb04dfdd43538curl
haxx curlfrom 8.5.0 before 8.7.0NVD
apple macosbefore 12.7.6, from 13.0 before 13.6.8, from 14.0 before 14.6NVD
netapp h700s_firmwareNot specifiedNVD
netapp bootstrap_osNot specifiedNVD
netapp h300s_firmwareNot specifiedNVD
netapp h410s_firmwareNot specifiedNVD
netapp h500s_firmwareNot specifiedNVD

All scores

CISA-ADP6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
curlmedium rating

Classification

CWE-297

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

What each source says

CVE List

libcurl did not check the server certificate of TLS connections done to a host specified as an IP address, when built to use mbedTLS. libcurl would wrongly avoid using the set hostname function when the specified hostname was given as an IP address, therefore completely skipping the certificate check. This affects all uses of TLS protocols (HTTPS, FTPS, IMAPS, POPS3, SMTPS, etc).

NVD (es)

libcurl no verificó el certificado del servidor de las conexiones TLS realizadas a un host especificado como dirección IP, cuando se creó para usar mbedTLS. libcurl evitaría erróneamente el uso de la función establecer nombre de host cuando el nombre de host especificado se proporcionara como dirección IP, por lo que se saltaría por completo la verificación del certificado. Esto afecta a todos los usos de los protocolos TLS (HTTPS, FTPS, IMAPS, POPS3, SMTPS, etc).

References

https://curl.se/docs/CVE-2024-2466.jsonvendor-advisory
https://curl.se/docs/CVE-2024-2466.htmlvendor-advisory
https://hackerone.com/reports/2416725exploit, issue-tracking, third-party-advisory
http://www.openwall.com/lists/oss-security/2024/03/27/4mailing-list, third-party-advisory
https://security.netapp.com/advisory/ntap-20240503-0010/third-party-advisory
https://support.apple.com/kb/HT214119release-notes, vendor-advisory
https://support.apple.com/kb/HT214118release-notes, vendor-advisory
https://support.apple.com/kb/HT214120release-notes, vendor-advisory
http://seclists.org/fulldisclosure/2024/Jul/20mailing-list, third-party-advisory
http://seclists.org/fulldisclosure/2024/Jul/18mailing-list, third-party-advisory
http://seclists.org/fulldisclosure/2024/Jul/19mailing-list, third-party-advisory
https://www.vicarius.io/vsociety/posts/tls-certificate-check-bypass-curl-with-mbedtls-cve-2024-2466-2468exploit, mitigation, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2024-2466 changed 2026-10-15CVE Terms of Use
curlCURL-CVE-2024-2466 changed 2026-10-25MIT
NVDCVE-2024-2466 changed 2026-10-15Public domain