VariantIncomplete

CWE-297Improper Validation of Certificate with Host Mismatch

Category: other

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.

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 provide data, impersonating a trusted host.

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

References

  1. https://cwe.mitre.org/data/definitions/297.html

(incoming)5

TypeTargetConfidenceTier
VulnerabilityCVE-2025-2190cve-2025-21900%live
VulnerabilityCVE-2025-3501cve-2025-35010%live
VulnerabilityCVE-2025-46408cve-2025-464080%live
VulnerabilityCVE-2025-68637cve-2025-686370%live
VulnerabilityCVE-2026-22747cve-2026-227470%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Improper Certificate Validation
CWE
Improper Following of a Certificate's Chain of Trust
CWE
Missing Validation of OpenSSL Certificate
CWE
Improper Check for Certificate Revocation
CWE
Improper Verification of Cryptographic Signature
CWE
Insufficient Verification of Data Authenticity
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.