---
title: "CWE-324: Use of a Key Past its Expiration Date"
url: https://radicalnotion.ai/cwe/cwe-324
type: cwe
description: "The product uses a cryptographic key past its expiration date."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-324: Use of a Key Past its Expiration Date

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Draft
- **Likelihood of exploit:** Low
- **CVEs with this as primary weakness:** 25
- **Of those, in CISA KEV:** 0
- **New in 2026:** 7
- **CWE catalog version:** 4.21

## Description

The product uses a cryptographic key past its expiration date.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Bypass Protection Mechanism, Gain Privileges or Assume Identity | Using a key past its expiration data increases the timing window for cracking attacks against that key. Or, the key in question may be compromised, providing a malicious user with a method for authenticating as the victim. |

## Potential mitigations

### Architecture and Design

Adequate consideration should be put into 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.

### Implementation

Replace keys within a period of time proportional to their strength.

## Demonstrative examples

### Example 1

The following code attempts to verify that a certificate is valid.

Bad code:

```c
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
}
```

The code checks if the certificate is not yet valid, but it fails to check if a certificate is past its expiration date, thus treating expired certificates as valid.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2021-33020 | Picture Archiving and Communication System (PACS) system for hospitals uses a cryptographic key or password past its expiration date |

## Real CVEs with this weakness (sample of 12 of 25)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-2291 | PgBouncer default auth\_query does not take Postgres password expiry into account | critical | 9.8 | - | No | 2025-04-16 |
| CVE-2024-36031 | keys: Fix overwrite of key expiration on instantiation | critical | 9.8 | - | No | 2024-05-30 |
| CVE-2026-39923 | Flarum \< 1.8.16 Password Reset Token Expiry Bypass via POST /reset | critical | 9.2 | - | No | 2026-08-05 |
| CVE-2025-33012 | IBM Db2 improper account lockout | high | 8.8 | - | No | 2025-11-07 |
| CVE-2025-31123 | Zitadel Expired JWT Keys Usable for Authorization Grants | high | 8.7 | - | No | 2025-03-31 |
| CVE-2021-33020 | Philips Vue PACS Use of a Key Past its Expiration Date | high | 8.2 | - | No | 2022-04-01 |
| CVE-2022-35401 | Asus RT-AX82U get\_IFTTTTtoken.cgi authentication bypass vulnerability | high | 8.1 | - | No | 2023-01-10 |
| CVE-2025-13723 | IBM Sterling Partner Engagement Manager Information Disclosure | high | 7.5 | - | No | 2026-03-13 |
| CVE-2023-6960 | CVE-2023-6960 | high | 7.5 | - | No | 2024-03-15 |
| CVE-2026-109148 | Expired Aliro Access Document remains authorized on cached and fast access paths | high | 7.0 | - | No | 2026-11-17 |
| CVE-2024-38277 | moodle: QR login key and auto-login key for the Moodle mobile app should be generated as separate keys | medium | 6.9 | - | No | 2024-06-18 |
| CVE-2026-52809 | Gogs: Password-reset tokens use account-activation lifetime, ignoring RESET\_PASSWORD\_CODE\_LIVES | medium | 6.8 | - | No | 2026-06-24 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-672](https://radicalnotion.ai/cwe/cwe-672) | Operation on a Resource after Expiration or Release |
| Peer | [CWE-262](https://radicalnotion.ai/cwe/cwe-262) | Not Using Password Aging |
| Peer | [CWE-298](https://radicalnotion.ai/cwe/cwe-298) | Improper Validation of Certificate Expiration |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| CLASP | Using a key past its expiration date | - | - |

## Frequently asked questions

### What is CWE-324?

The product uses a cryptographic key past its expiration date.

### What CVEs are caused by CWE-324?

25 recorded CVEs are attributed to CWE-324, including CVE-2025-2291, CVE-2024-36031 and CVE-2026-39923.

### How do you prevent CWE-324?

Adequate consideration should be put into 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.

### What are the consequences of CWE-324?

Exploiting CWE-324 can lead to: Bypass Protection Mechanism, Gain Privileges or Assume Identity.

### Is CWE-324 actively exploited?

25 recorded CVEs are caused by CWE-324; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/324.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-324). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
