CWE•Variant•Incomplete•20 recent CVEs
CWE-297Improper Validation of Certificate with Host Mismatch
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.
[object Object]
Common consequences
- Access Control→Gain Privileges or Assume IdentityThe data read from the system vouched for by the certificate may not be from the expected system.
- Authentication,Other→OtherTrust 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,OtherIf 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
Potential mitigations
- Architecture and DesignFully check the hostname of the certificate and provide the user with adequate information about the nature of the problem and how to proceed.
- ImplementationIf certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the hostname.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-580406.32026-07-30CVE-2026-660535.92026-07-27CVE-2026-481457.52026-07-27CVE-2026-481449.12026-07-27CVE-2026-152432026-07-24CVE-2026-159252026-07-16CVE-2026-542757.52026-06-22CVE-2026-121625.52026-06-16CVE-2026-443937.42026-06-04CVE-2026-355638.52026-06-01CVE-2026-427908.12026-05-27CVE-2026-444676.82026-05-13CVE-2026-438697.32026-05-05CVE-2026-227476.82026-04-22CVE-2026-344775.92026-04-10CVE-2026-262147.42026-02-12CVE-2025-252537.52025-10-14CVE-2024-129257.32025-09-01CVE-2025-42954.62025-07-22CVE-2014-35222014-08-19