When asked to do a TLS connection (HTTPS, FTPS, IMAPS, etc) to a URL specified with an IP address instead of a name, libcurl would wrongly not verify the server's name in the certificate. The signature (whether it was signed by a trusted CA) and validity (whether the date was within the certificate's lifetime and it was not revoked) verification was still performed.
This is a problem in libcurl built to use the Schannel TLS backend. Schannel is the native library provided by Microsoft Windows.
Only users on Windows can be affected by this, and only if libcurl was built to use the native TLS backend library.
{
"severity": "Medium",
"www": "https://curl.se/docs/CVE-2014-2522.html",
"URL": "https://curl.se/docs/CVE-2014-2522.json",
"last_affected": "7.35.0",
"affects": "both",
"package": "curl",
"CWE": {
"desc": "Improper Validation of Certificate with Host Mismatch",
"id": "CWE-297"
}
}"2026-05-27T02:29:26Z"
[
{
"signature_type": "Function",
"target": {
"file": "lib/vtls/curl_schannel.c",
"function": "schannel_connect_step1"
},
"deprecated": false,
"source": "https://github.com/curl/curl.git/commit/63fc8ee7be2b712e7af5029f4f8a86a0dfd71b38",
"id": "CURL-CVE-2014-2522-65f911ef",
"signature_version": "v1",
"digest": {
"function_hash": "201114652427706738740804130433342670756",
"length": 5212.0
}
},
{
"signature_type": "Line",
"target": {
"file": "lib/vtls/curl_schannel.c"
},
"deprecated": false,
"source": "https://github.com/curl/curl.git/commit/63fc8ee7be2b712e7af5029f4f8a86a0dfd71b38",
"id": "CURL-CVE-2014-2522-72d96fcb",
"signature_version": "v1",
"digest": {
"line_hashes": [
"37067894196444900397617705016039623743",
"161768383064884761262690179874875144343",
"82500998688114360303281786540641069544",
"289399917483318758033777927158434858866",
"332600585901512242754128816846775029390",
"96034512906067914464259407389070079807",
"248455268525012668894381651065346837303",
"252858979942174794365535322041206415414",
"36255879304211910177030073595527677586",
"65508394054464198753753981692666982439",
"107607901544107254571541286663980946099",
"281175509784847119433452659265058060331",
"220146253374254298395958640922488755668",
"128202501759524298133555426942877081053",
"293810268716254750755126383521910622768"
],
"threshold": 0.9
}
}
]
"https://curl.se/docs/CURL-CVE-2014-2522.json"