CVE-2024-2466
Vulnerability Summary
Timeline
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).
CVSS Metrics
- v3.1•MEDIUM•Score: 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS Trends
Current EPSS score: 1.33%• Percentile: 70%
Techniques & Countermeasures
- CWE-297•Improper Validation of Certificate with Host Mismatch
The product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host.
Affected Systems
- alpine•curl
≥ 8.5.0, < 8.7.1-r0 | ≥ 8.5.0, < 8.7.1-r0 | ≥ 8.5.0, < 8.7.1-r0 | ≥ 8.5.0, < 8.7.1-r0 | ≥ 8.5.0, < 8.7.1-r0 | ≥ 8.5.0, < 8.7.1-r0 | ≥ 8.5.0, < 8.7.1-r0 | ≥ 8.5.0, < 8.7.1-r0
- chainguard•curl
< 8.7.1-r0
- chainguard•libcurl4
all
- wolfi•curl
< 8.7.1-r0
- wolfi•libcurl4
all
- apple•macos
< 12.7.6 | ≥ 13.0, < 13.6.8 | ≥ 14.0, < 14.6
- curl•curl
8.6.0 | 8.5.0
- debian•curl
< 8.7.1-1 | < 8.7.1-1
- haxx•curl
≥ 8.5.0, < 8.7.0
- netapp•bootstrap_os
na
- netapp•h300s_firmware
na
- netapp•h410s_firmware
na
- netapp•h500s_firmware
na
- netapp•h700s_firmware
na
References (16)
- https://curl.se/docs/CVE-2024-2466.json
- https://curl.se/docs/CVE-2024-2466.html
- https://hackerone.com/reports/2416725
- http://www.openwall.com/lists/oss-security/2024/03/27/4
- https://security.netapp.com/advisory/ntap-20240503-0010/
- https://support.apple.com/kb/HT214119
- https://support.apple.com/kb/HT214118
- https://support.apple.com/kb/HT214120
- http://seclists.org/fulldisclosure/2024/Jul/20
- http://seclists.org/fulldisclosure/2024/Jul/18
- http://seclists.org/fulldisclosure/2024/Jul/19
- https://www.vicarius.io/vsociety/posts/tls-certificate-check-bypass-curl-with-mbedtls-cve-2024-2466-2468
- https://security-tracker.debian.org/tracker/CVE-2024-2466
- https://security.alpinelinux.org/vuln/CVE-2024-2466
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/2xxx/CVE-2024-2466.json
- https://nvd.nist.gov/vuln/detail/CVE-2024-2466