TLS certificate check bypass with mbedTLS
Description
libcurl with mbedTLS fails to verify TLS server certificates when connecting to an IP address, enabling man-in-the-middle attacks.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
libcurl with mbedTLS fails to verify TLS server certificates when connecting to an IP address, enabling man-in-the-middle attacks.
Vulnerability
libcurl, when built with the mbedTLS TLS library, does not perform server certificate verification for TLS connections where the hostname is specified as an IP address. The library incorrectly avoids calling the set hostname function for IP addresses, thereby skipping the certificate check entirely. This affects all TLS protocols (HTTPS, FTPS, IMAPS, POP3S, SMTPS, etc.) in all versions of libcurl using mbedTLS prior to the fix [4].
Exploitation
An attacker with a network position between the client and the server can perform a man-in-the-middle attack. No authentication or user interaction is required. The attacker simply presents any TLS certificate (e.g., self-signed) for the IP address, and because libcurl does not validate it, the connection proceeds without warning.
Impact
Successful exploitation completely bypasses TLS certificate validation, allowing the attacker to intercept, read, and modify encrypted communication. This can lead to disclosure of sensitive information (e.g., credentials, session tokens) and potential further compromise of the affected system.
Mitigation
Users should update to a fixed version of libcurl/curl. The curl project released a security advisory on March 27, 2024, and patches are available. Affected users should upgrade to the latest curl release that includes the fix. No workaround is available besides avoiding the use of IP addresses in URLs or switching to a different TLS backend.
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
18- osv-coords16 versionspkg:apk/chainguard/curlpkg:apk/chainguard/curl-devpkg:apk/chainguard/curl-docpkg:apk/chainguard/curl-oci-entrypointpkg:apk/chainguard/curl-staticpkg:apk/chainguard/libcurl4pkg:apk/chainguard/libcurl-openssl4pkg:apk/wolfi/curlpkg:apk/wolfi/curl-devpkg:apk/wolfi/curl-docpkg:apk/wolfi/curl-oci-entrypointpkg:apk/wolfi/curl-staticpkg:apk/wolfi/libcurl4pkg:apk/wolfi/libcurl-openssl4pkg:rpm/opensuse/curl&distro=openSUSE%20Tumbleweedpkg:rpm/suse/curl&distro=SUSE%20Linux%20Micro%206.0
< 8.7.1-r0+ 15 more
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-r0
- (no CPE)range: < 8.7.1-1.1
- (no CPE)range: < 8.6.0-3.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
11- seclists.org/fulldisclosure/2024/Jul/18mitre
- seclists.org/fulldisclosure/2024/Jul/19mitre
- seclists.org/fulldisclosure/2024/Jul/20mitre
- www.openwall.com/lists/oss-security/2024/03/27/4mitre
- curl.se/docs/CVE-2024-2466.htmlmitre
- curl.se/docs/CVE-2024-2466.jsonmitre
- hackerone.com/reports/2416725mitre
- security.netapp.com/advisory/ntap-20240503-0010/mitre
- support.apple.com/kb/HT214118mitre
- support.apple.com/kb/HT214119mitre
- support.apple.com/kb/HT214120mitre
News mentions
0No linked articles in our index yet.