36 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.
cert = SSL_get_peer_certificate(ssl); if (cert && (SSL_get_verify_result(ssl)==X509_V_OK)) { // do secret things }| CVE ID | Title | CVSS | Severity | Published |
|---|---|---|---|---|
| CVE-2020-14387 | rsync rsync-ssl 存在安全漏洞 — rsync | 7.4 | - | 2021-05-27 |
| CVE-2020-15260 | Existing TLS connections can be reused without checking remote hostname — pjproject | 6.8 | Medium | 2021-03-10 |
| CVE-2020-1758 | Red Hat Keycloak 信任管理问题漏洞 — keycloak | 5.3 | Medium | 2020-05-15 |
| CVE-2020-11050 | Improper Validation of Certificate with Host Mismatch in Java-WebSocket — Java-WebSocket | 9.0 | Critical | 2020-05-07 |
| CVE-2020-1887 | Facebook osquery 信任管理问题漏洞 — Osquery | 7.4 | - | 2020-03-12 |
| CVE-2018-10936 | postgresql-jdbc 安全漏洞 — PostgreSQL | 7.4 | - | 2018-08-30 |
Vulnerabilities classified as CWE-297 (对宿主不匹配的证书验证不恰当) represent 36 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.