Cyber Resilience

CWE · MITRE source

CWE-297Improper Validation of Certificate with Host Mismatch

Abstraction: Variant · CVEs in our corpus: 57

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: 04 July 2026 00:28 UTC

Cumulative inbound coverage

How completely the frameworks we cross-walk collectively cover this — the verdict is the strongest single mapping (overlapping partials are not summed); breadth shows the corroboration behind it.

Collective: mostly · 4 mapping(s) from 2 framework(s): ATT&CK 3 (mostly) · ASVS 5.0 1 (mostly)

See the full cumulative-coverage rollup →

OWASP Top 10 for Web (2025)

This weakness contributes to A07:2025 Authentication Failures.

NIST 800-53 r5 controls that address this weakness (1)AI

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.

MITRE ATT&CK techniques this weakness enables

Our own two-way CWE↔ATT&CK cross-walk — a direct mapping with no public source (the CWE→CAPEC→ATT&CK chain leaves most top weaknesses, incl. XSS and SQLi, mapped to nothing). Drafted by Grok and spot-checked by Claude Opus 4.8.

Direction: other covers this; this covers other (F/M/P = full / mostly / partial).

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2020-18877.09.10.01282020-03-13
CVE-2020-110507.09.00.00772020-05-07
CVE-2021-336957.09.10.00542021-09-15
CVE-2025-464087.09.80.00612025-09-15
CVE-2025-686377.09.10.00222026-01-07
CVE-2018-109365.58.10.02912018-08-30
CVE-2021-213855.58.80.00702021-03-24
CVE-2020-143875.57.40.01102021-05-27
CVE-2022-321535.58.10.00852022-06-15
CVE-2023-59095.57.50.00442023-11-30
CVE-2024-344475.57.50.00772024-05-03
CVE-2024-370155.57.40.00372024-08-13
CVE-2024-73465.57.20.00162024-09-03
CVE-2025-21905.58.10.00312025-03-11
CVE-2025-3501 UPD5.58.20.00392025-04-29
CVE-2024-129255.57.30.00142025-09-01
CVE-2025-25253 UPD5.57.50.00102025-10-14
CVE-2026-262145.57.40.00182026-02-12
CVE-2026-41603 UPD5.57.40.00592026-04-28
CVE-2026-43869 UPD5.57.30.00632026-05-05
CVE-2026-42790 UPD5.58.10.00342026-05-27
CVE-2026-35563 UPD5.58.50.00182026-06-01
CVE-2026-44393 UPD5.57.40.00162026-06-04
CVE-2026-542755.57.50.00272026-06-22
CVE-2014-35223.50.00.05582014-08-19