Skip to content
Heist/ feed
Back to feed
Medium

TLS certificate check bypass with mbedTLS

Type: advisorySources: OSV

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).

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-2466
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:36 UTC · Revision 1

Source evidence

TLS certificate check bypass with mbedTLS

core-osv · Original source

Published 27 Mar 2024, 08:00 UTC

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).

osv:CURL-CVE-2024-2466
Complete source record
{
  "id": "aa0e96dc59d60cc293d27695251bb85a73c8c74d7d1434178f5330fe86d123e2",
  "url": "https://osv.dev/vulnerability/CURL-CVE-2024-2466",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "TLS certificate check bypass with mbedTLS",
    "summary": "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).",
    "evidence": "osv:CURL-CVE-2024-2466",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CURL-CVE-2024-2466",
      "aliases": [
        "CURL-CVE-2024-2466",
        "CVE-2024-2466"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "8.5.0"
                },
                {
                  "fixed": "8.7.0"
                }
              ]
            },
            {
              "repo": "https://github.com/curl/curl.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "fa714830e92cba7b16b9d3f2cc92a72ee9d821fa"
                },
                {
                  "fixed": "3d0fd382a29b95561b90b7ea3e7eb04dfdd43538"
                }
              ]
            }
          ],
          "versions": [
            "8.6.0",
            "8.5.0",
            "curl-8_6_0",
            "curl-8_5_0"
          ],
          "database_specific": {
            "source": "https://curl.se/docs/CURL-CVE-2024-2466.json",
            "vanir_signatures": [
              {
                "id": "CURL-CVE-2024-2466-499f0287",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "35164240309145216823210455688732227964",
                    "170207766832450195305766575509655711767",
                    "279076801873133192074144897596595760991",
                    "38712474459906527682190742064425929060",
                    "296746372243249932904272205558101137499",
                    "289186014989873516532444646310622965665",
                    "235608606007454762018156356841211366658",
                    "213535413285472025897417683868173990226"
                  ]
                },
                "source": "https://github.com/curl/curl.git/commit/3d0fd382a29b95561b90b7ea3e7eb04dfdd43538",
                "target": {
                  "file": "lib/vtls/mbedtls.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CURL-CVE-2024-2466-8a528aff",
                "digest": {
                  "length": 9028,
                  "function_hash": "81750412380569256973551501638685022582"
                },
                "source": "https://github.com/curl/curl.git/commit/3d0fd382a29b95561b90b7ea3e7eb04dfdd43538",
                "target": {
                  "file": "lib/vtls/mbedtls.c",
                  "function": "mbed_connect_step1"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-25T01:04:35Z"
          }
        }
      ],
      "modified": "2026-10-25T01:04:35.280284739Z",
      "provider": "osv",
      "references": [],
      "provider_metadata": {
        "CWE": {
          "id": "CWE-297",
          "desc": "Improper Validation of Certificate with Host Mismatch"
        },
        "URL": "https://curl.se/docs/CVE-2024-2466.json",
        "www": "https://curl.se/docs/CVE-2024-2466.html",
        "award": {
          "amount": "2540",
          "currency": "USD"
        },
        "issue": "https://hackerone.com/reports/2416725",
        "affects": "both",
        "package": "curl",
        "severity": "Medium",
        "last_affected": "8.6.0"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-2466",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 444264,
  "published_at": "2024-03-27T08:00:00+00:00"
}