CWEweakness

CWE-298 Improper Validation of Certificate Expiration

Low Official page ↗
Abstraction
Variant
Structure
Simple
Status
Draft
Likelihood of exploit
Low
Languages
Not Language-Specific
CWE version
5.0

Description

A certificate expiration is not validated or is incorrectly validated.

Common consequences

• Integrity, Other: Other — The data read from the system vouched for by the expired certificate may be flawed due to malicious spoofing. • Authentication, Other: Other — Trust may be assigned to certificates that have been abandoned due to age.

Potential mitigations

• [Architecture and Design] Check for expired certificates 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 expiration.

Detection methods

• Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Observed examples

• CVE-2025-4384: product does not verify that a certificate has expired • CVE-2007-3564: web library product does not verify that a certificate has expired • CVE-2007-6746: IRC product does not check the expiration date of the X.509 certificate

Related

Observed example · CVE (3)

  • CVE-2025-4384 The MQTT add-on of PcVue fails to verify that a remote device’s certificate has not already expired or has not yet become valid. vulnerability
  • CVE-2007-6746 telepathy-idle before 0.1.15 does not verify (1) that the issuer is a trusted CA, (2) that the server hostname matches a domain name in the… vulnerability
  • CVE-2007-3564 libcurl 7.14.0 through 7.16.3, when built with GnuTLS support, does not check SSL/TLS certificate expiration or activation dates, which… vulnerability

Child of · CWE (2)

  • CWE-295 Improper Certificate Validation weakness
  • CWE-672 Operation on a Resource after Expiration or Release weakness

Referenced by CVE · weakness (8)

  • CVE-2026-86231 A security flaw has been discovered in mwiede jsch up to 2.28.5. vulnerability
  • CVE-2024-1248 The silent Just-In-Time (JIT) provisioning feature in federated authentication implementations fails to properly segregate user roles… vulnerability
  • CVE-2025-67108 eProsima Fast-DDS v3.3 was discovered to contain improper validation for ticket revocation, resulting in insecure communications and… vulnerability
  • CVE-2025-67109 Improper verification of the time certificate in Eclipse Cyclone DDS before v0.10.5 allows attackers to bypass certificate checks and… vulnerability
  • CVE-2025-61736 Successful exploitation of this vulnerability could result in the product failing to re-establish communication once the certificate… vulnerability
  • CVE-2025-59036 Infrahub offers a central hub to manage data, templates, and playbooks. vulnerability
  • CVE-2025-4384 The MQTT add-on of PcVue fails to verify that a remote device’s certificate has not already expired or has not yet become valid. vulnerability
  • CVE-2023-42446 Pow is a authentication and user management solution for Phoenix and Plug-based apps. vulnerability

Referenced by CWE · peer of (2)

  • CWE-324 Use of a Key Past its Expiration Date weakness
  • CWE-370 Missing Check for Certificate Revocation after Initial Check weakness

Referenced by OWASP · mapped cwe (1)

  • A07:2025 Authentication Failures Top 10 2025