Original 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 software
- curl ≥ 8.5.0 < 8.7.0 Fixed in: 8.7.0 exact match
Details
- Published
- 2024-03-27
- Last modified
- 2026-10-15
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N- CWE
- CWE-297
- EPSS (30-day exploit probability)
- 1.45% (percentile 74)
References
- cve.org/CVE-2024-2466
- nvd.nist.gov/vuln/detail/CVE-2024-2466
- seclists.org/fulldisclosure/2024/Jul/18
- seclists.org/fulldisclosure/2024/Jul/19
- seclists.org/fulldisclosure/2024/Jul/20
- www.openwall.com/lists/oss-security/2024/03/27/4
- curl.se/docs/CVE-2024-2466.html
- curl.se/docs/CVE-2024-2466.json
- hackerone.com/reports/2416725
- security.netapp.com/advisory/ntap-20240503-0010/
- support.apple.com/kb/HT214118
- support.apple.com/kb/HT214119
- support.apple.com/kb/HT214120
- www.vicarius.io/vsociety/posts/tls-certificate-check-bypass-curl-with-mbedtls-cve-2024-246...
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.