Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-297 (对宿主不匹配的证书验证不恰当) — Vulnerability Class 63

63 vulnerabilities classified as CWE-297 (对宿主不匹配的证书验证不恰当). AI Chinese analysis included.

CWE-297 represents a critical validation weakness where software fails to verify that an SSL/TLS certificate’s identity matches the intended host. This flaw allows attackers to exploit the trust relationship by presenting a valid, properly signed certificate issued for a different domain. Consequently, malicious actors can perform man-in-the-middle attacks, intercepting sensitive data or injecting malicious content without triggering security warnings. Developers prevent this vulnerability by implementing strict hostname verification during the TLS handshake. This process involves comparing the server’s hostname against the Common Name or Subject Alternative Name fields in the certificate. By ensuring the certificate explicitly authorizes the specific host being contacted, applications maintain data integrity and confidentiality, effectively neutralizing impersonation attempts even when the certificate chain itself is technically valid.

MITRE CWE Description
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. Even if a certificate is well-formed, signed, and follows the chain of trust, it may simply be a valid certificate for a different site than the site that the product is interacting with. In order to ensure data integrity, the certificate must be valid, and it must pertain to the site that is being accessed. Even if the product attempts to check the hostname, it is still possible to incorrectly check the hostname. For example, attackers could create a certificate with a name that begins with a trusted name followed by a NUL byte, which could cause some string-based comparisons to only examine the portion that contains the trusted name.
Common Consequences (3)
Access Control Gain Privileges or Assume Identity
The data read from the system vouched for by the certificate may not be from the expected system.
Authentication, Other Other
Trust afforded to the system in question - based on the malicious certificate - may allow for spoofing or redirection attacks.
Access Control, Other Gain Privileges or Assume Identity, Other
If the certificate's host-specific data is not properly checked - such as the Common Name (CN) in the Subject or the Subject Alternative Name (SAN) extension of an X.509 certificate - it may be possible for a redirection or spoofing attack to allow a malicious host with a valid certificate to provid…
Mitigations (2)
Architecture and Design Fully check the hostname of the certificate and provide the user with adequate information about the nature of the problem and how to proceed.
Implementation If certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the hostname.
Examples (1)
The following OpenSSL code obtains a certificate and verifies it.
cert = SSL_get_peer_certificate(ssl); if (cert && (SSL_get_verify_result(ssl)==X509_V_OK)) { // do secret things }
Bad · C
CVE ID Title CVSS Severity Published
CVE-2026-85974 Improper TLS hostname verification in Progress MarkLogic Server — MarkLogic Server 7.4 High 2026-10-12
CVE-2026-107819 MariaDB Connector/C: libmariadb allowed cleartext password leakage on TLS hostname verification failure — server 5.9 Medium 2026-10-09
CVE-2026-107660 FFmpeg before 8.1.3 and 9.x before 9.0.2 mbedTLS Hostname Verification Bypass for IP Hosts — FFmpeg 4.8 Medium 2026-10-08
CVE-2026-102669 Joyland AI hostname checking disabled — Joyland.ai 5.3 Medium 2026-10-01
CVE-2026-19553 SSLContext.wrap_bio() missing validation of server_hostname parameter — CPython 7.6 High 2026-09-30
CVE-2026-91769 TLS Hostname Verification Falls Back to CN After SAN Mismatch — PHP 4.3 Medium 2026-09-25
CVE-2026-91166 Warpgate: Web SSH stores a jump host's key against the target's address, so it validates as the target — warpgate 5.7 Medium 2026-09-21
CVE-2026-92943 Improper validation of certificate with host mismatch in AWS IoT Device SDK for Python — AWSIoTPythonSDK 8.1 High 2026-09-17
CVE-2026-59969 Apache ZooKeeper: Improper validation of certificate with host mismatch in FIPS mode — Apache ZooKeeper - - 2026-09-16
CVE-2026-79636 Dell Secure Connect Gateway 加密问题漏洞 — Secure Connect Gateway 5.0 - Application 7.0 High 2026-09-09
CVE-2026-84393 Fortinet FortiOS 加密问题漏洞 — FortiOS 7.3 High 2026-09-08
CVE-2026-79943 Dell Secure Connect Gateway 加密问题漏洞 — Secure Connect Gateway 5.0 - Application 4.8 Medium 2026-09-07
CVE-2026-9744 Vulnerabilities exists in IBM Netezza Software — Netezza Software 5.3 Medium 2026-09-03
CVE-2026-62243 Netty 4.2.0 through 4.2.16 TLS Hostname Verification Bypass — netty 7.5 High 2026-08-22
CVE-2026-65942 Apache Ranger: Clients accept TLS certificates issued for other hostnames — Apache Ranger - - 2026-08-10
CVE-2026-12730 Improper Validation of Certificate with Host Mismatch in IBM Business Automation Workflow containers — Business Automation Workflow containers and traditional 3.8 Low 2026-08-05
CVE-2026-59638 JSSE hostname verifier CN-fallback enabled by default despite documented opt-in — BC-JAVA 9.3 Critical 2026-08-03
CVE-2026-66053 Apache Thrift: Python TSSLSocket Hostname Matcher Import — Apache Thrift 5.9 Medium 2026-07-27
CVE-2026-48145 Apache Thrift: C++ TSSLSocket matchName() RFC 6125 Wildcard Bypass — Apache Thrift 8.2 High 2026-07-27
CVE-2026-48144 Apache Thrift: c_glib TLS Client Missing Hostname Verification — Apache Thrift 9.1 Critical 2026-07-27
CVE-2026-15243 Improper Validation of Certificate in CAS Client — Java Apereo CAS Client 7.4 High 2026-07-24
CVE-2026-15925 Improper TLS Hostname Verification in Snowflake Connector for Python — Snowflake Connector for Python - - 2026-07-16
CVE-2026-9547 SSH improper host validation — curl - - 2026-07-03
CVE-2026-12064 proto-default skips SSH verification — curl - - 2026-07-03
CVE-2026-54275 AIOHTTP: TLS Server Hostname Override Is Ignored When Reusing HTTPS Connections — aiohttp - - 2026-06-22
CVE-2026-35563 Apache Directory LDAP API: LDAP client implementation does not verify if the server certificate matches the intended LDAP hostname — Apache Directory LDAP API - - 2026-06-01
CVE-2026-44467 Claude Desktop: SSH Host Key Verification Bypass Allows Man-in-the-Middle Attack on Remote Sessions — claude-code - - 2026-05-13
CVE-2026-43869 Apache Thrift: TSSLTransportFactory.java hostname verification — Apache Thrift 7.5 - 2026-05-05
CVE-2026-34477 Apache Log4j Core: verifyHostName attribute silently ignored in TLS configuration, allowing hostname verification bypass — Apache Log4j Core 8.2AI High AI 2026-04-10
CVE-2025-59060 Apache Ranger: Hostname verification bypass in NiFiRegistryClient — Apache Ranger 5.3AI Medium AI 2026-03-03

Vulnerabilities classified as CWE-297 (对宿主不匹配的证书验证不恰当) represent 63 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.