Security Resilience

CWE · MITRE source

CWE-297Improper Validation of Certificate with Host Mismatch

Abstraction: Variant · CVEs in our corpus: 90

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.

Last updated: 16 October 2026 14:24 UTC

OWASP Top 10 for Web (2025)

This weakness contributes to A07:2025 Authentication Failures.

Control responseHuman-reviewed

Answering this weakness across the control lifecycle, from our framework cross-walks.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • SC-17 Public Key Infrastructure Certificates
  • PR.AA-03
  • PR.DS-02
  • PR.PS-06
Detect
Catch it (CSF Detect / Respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V17.2.8

NIST 800-53 r5 controls PROPOSED for this weakness (1)AI-assisted

These are model PROPOSALS, not graded mappings. They come from controls_to_cwe_proposals, which carries no grade field at all; across the CWE pages 1,540 of 1,722 such associations (89%) have never been graded by anything. The heading said “address” until 2026-09-29, which asserted a relationship the data does not carry. Graded cross-walks are on the framework map, not here.

Control Title Family Why it addresses this CWE
SC-17Public Key Infrastructure CertificatesSCApproved PKI issuance and trust stores enforce full certificate validation steps including name/hostname checks.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2025-46408 7.49.80.00662025-09-15
CVE-2020-1887 7.29.10.01572020-03-13
CVE-2021-33695 6.99.10.00562021-09-15
CVE-2026-481446.89.10.00402026-07-27
CVE-2021-21385 6.78.80.00742021-03-24
CVE-2025-68637 6.79.10.00252026-01-07
CVE-2026-49457 6.79.10.00252026-08-14
CVE-2026-886476.79.10.00212026-10-08
CVE-2018-10936 6.68.10.02912018-08-30
CVE-2026-1079386.69.10.00182026-10-09
CVE-2020-11050 6.59.00.00792020-05-07
CVE-2022-32153 6.38.10.00922022-06-15
CVE-2025-3501 6.28.20.00462025-04-29
CVE-2026-42790 6.18.10.00472026-05-27
CVE-2026-929436.18.10.00382026-09-17
CVE-2024-34447 6.07.50.00772024-05-03
CVE-2025-2190 6.08.10.00342025-03-11
CVE-2026-84393 6.08.10.00282026-09-08
CVE-2020-14387 5.97.40.01112021-05-27
CVE-2026-43869 5.97.30.00812026-05-05
CVE-2026-35563 5.98.50.00262026-06-01
CVE-2026-542755.97.50.00472026-06-22
CVE-2026-65942 5.97.50.00592026-08-10
CVE-2023-5909 5.87.50.00442023-11-30
CVE-2026-12064 5.87.50.00402026-07-03