Description
The product uses a cryptographic key or password past its expiration date, which diminishes its safety significantly by increasing the timing window for cracking attacks against that key.
While the expiration of keys does not necessarily ensure that they are compromised, it is a significant concern that keys which remain in use for prolonged periods of time have a decreasing probability of integrity. For this reason, it is important to replace keys within a period of time proportional to their strength.
Potential Impact
Access Control
Bypass Protection Mechanism, Gain Privileges or Assume Identity
Demonstrative Examples
if (cert = SSL_get_peer_certificate(ssl)) {
foo=SSL_get_verify_result(ssl);if ((X509_V_OK==foo) || (X509_V_ERRCERT_NOT_YET_VALID==foo))
//do stuff
}Mitigations & Prevention
Adequate consideration should be put in to the user interface in order to notify users previous to the key's expiration, to explain the importance of new key generation and to walk users through the process as painlessly as possible.
Real-World CVE Examples
| CVE ID | Description |
|---|---|
| CVE-2021-33020 | Picture Archiving and Communication System (PACS) system for hospitals uses a cryptographic key or password past its expiration date |
Related Weaknesses
Taxonomy Mappings
- CLASP: — Using a key past its expiration date
Frequently Asked Questions
What is CWE-324?
CWE-324 (Use of a Key Past its Expiration Date) is a software weakness identified by MITRE's Common Weakness Enumeration. It is classified as a Base-level weakness. The product uses a cryptographic key or password past its expiration date, which diminishes its safety significantly by increasing the timing window for cracking attacks against that key.
How can CWE-324 be exploited?
Attackers can exploit CWE-324 (Use of a Key Past its Expiration Date) to bypass protection mechanism, gain privileges or assume identity. This weakness is typically introduced during the Architecture and Design phase of software development.
How do I prevent CWE-324?
Key mitigations include: Adequate consideration should be put in to the user interface in order to notify users previous to the key's expiration, to explain the importance of new key generation and to walk users through the p
What is the severity of CWE-324?
CWE-324 is classified as a Base-level weakness (Medium abstraction). It has been observed in 1 real-world CVEs.