Skip to main content

CWE-295: Improper Certificate Validation

BaseDraft

The product does not validate, or incorrectly validates, a certificate.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Frequently Asked Questions

What is CWE-295: Improper Certificate Validation?+

CWE-295: Improper Certificate Validation is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product does not validate, or incorrectly validates, a certificate.

What are the security consequences of Improper Certificate Validation?+

If exploited, CWE-295 (Improper Certificate Validation) it can compromise Integrity and Authentication, leading to outcomes such as Bypass Protection Mechanism and Gain Privileges or Assume Identity.

How do you prevent or mitigate Improper Certificate Validation?+

Recommended mitigations for CWE-295 include: Certificates should be carefully managed and checked to assure that data are encrypted with the intended owner's public key. 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.

How is Improper Certificate Validation detected?+

CWE-295 can be detected using Dynamic Analysis with Manual Results Interpretation, Manual Static Analysis - Source Code and Architecture or Design Review. Combining automated tooling with manual review typically yields the best coverage.

Which programming languages are affected by Improper Certificate Validation?+

CWE-295 commonly affects Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What are real-world examples of Improper Certificate Validation?+

MITRE documents real CVEs mapped to CWE-295, including CVE-2019-12496, CVE-2014-1266, CVE-2021-22909, CVE-2008-4989 and CVE-2012-5821. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-295 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More