---
title: "CWE-1472: Generation of Credential with Long Expiration"
url: https://radicalnotion.ai/cwe/cwe-1472
type: cwe
description: "The product generates or relies on a credential such as a key, certificate, password, confirmation code, or token, but the credential does not expire or has an expiration that is too long, i.e., the expiration is insufficient for the intended security policy of the product."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1472: Generation of Credential with Long Expiration

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 0
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

The product generates or relies on a credential such as a key, certificate, password, confirmation code, or token, but the credential does not expire or has an expiration that is too long, i.e., the expiration is insufficient for the intended security policy of the product.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |
| System Configuration | - |
| Operation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control, Confidentiality, Integrity | Gain Privileges or Assume Identity, Bypass Protection Mechanism, Varies by Context | - |

## Potential mitigations

### Implementation, Operation

For each credential that is created, reset, or used, ensure that the expiration is set to be as short as possible while preserving usability.

### Architecture and Design

Design the product to analyze the credentials that it manages, and provide mechanisms to provide secure defaults, and/or a capability to warn users about excessive expiration.

## Detection methods

### Automated Dynamic Analysis

If the credentials are provided through a communications protocol, monitor the communications related to credential generation and examine any expiration dates or times that are set.

### Manual Analysis

Examine the code to determine where credentials are created or updated, and determine how any expiration dates or times are set.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2026-96616 | Video encoder web interface issues authentication tokens with an expiration time that is longer than the expected session lifetime. |
| CVE-2026-33707 | Chain: Learning management system generates tokens without an expiration (CWE-1472), making its password reset mechanism weak (CWE-640). |
| CVE-2026-26342 | firmware camera system creates an authentication token with insufficient expiration. |
| CVE-2026-21622 | Package manager for Erlang uses password reset tokens that do not expire. |
| CVE-2026-8760 | Wordpress plugin generates a One-Time Password (OTP) without an expiration (CWE-1472) and does not perform rate-limiting (CWE-307), allowing attackers to compromise accounts via a brute force attack. |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-284](https://radicalnotion.ai/cwe/cwe-284) | Improper Access Control |
| Parent | [CWE-664](https://radicalnotion.ai/cwe/cwe-664) | Improper Control of a Resource Through its Lifetime |
| Child | [CWE-262](https://radicalnotion.ai/cwe/cwe-262) | Not Using Password Aging |
| Child | [CWE-263](https://radicalnotion.ai/cwe/cwe-263) | Password Aging with Long Expiration |

## Frequently asked questions

### What is CWE-1472?

The product generates or relies on a credential such as a key, certificate, password, confirmation code, or token, but the credential does not expire or has an expiration that is too long, i.e., the expiration is insufficient for the intended security policy of the product.

### How do you prevent CWE-1472?

For each credential that is created, reset, or used, ensure that the expiration is set to be as short as possible while preserving usability.

### How is CWE-1472 detected?

Automated Dynamic Analysis: If the credentials are provided through a communications protocol, monitor the communications related to credential generation and examine any expiration dates or times that are set.

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

Exploiting CWE-1472 can lead to: Gain Privileges or Assume Identity, Bypass Protection Mechanism, Varies by Context.

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

---

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