CWE-298

Improper Validation of Certificate Expiration
AI Translation Available

A certificate expiration is not validated or is incorrectly validated.

Status
draft
Abstraction
variant
Likelihood
low

Common Consequences

integrity other authentication
Impacts
other

Potential Mitigations

Phases:
architecture and design implementation
Descriptions:
• If certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the expiration.
• Check for expired certificates and provide the user with adequate information about the nature of the problem and how to proceed.