CWE-1472 Generation of Credential with Long Expiration

On cwe.mitre.org
Type
Base
Status
Incomplete
Mapping
Allowed
Catalogue
CWE 5.0, 28 Oct 2026

Should you map to this?

Allowed Fine to map a vulnerability to.

This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.

Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.

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.

Common consequences

ScopeImpactNotes
Access Control, Confidentiality, IntegrityGain Privileges or Assume Identity, Bypass Protection Mechanism, Varies by ContextThe consequences vary depending on how the credential is intended for use within the product. At the least, a long expiration date gives an attacker more time to steal or guess the credential, and if compromised, the attacker would have more time than desired in order to conduct malicious activities.

Mitigations

  1. 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.

  2. 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.

Observed examples

ReferenceWhat happened
CVE-2026-96616Video encoder web interface issues authentication tokens with an expiration time that is longer than the expected session lifetime.
CVE-2026-33707Chain: Learning management system generates tokens without an expiration (CWE-1472), making its password reset mechanism weak (CWE-640).
CVE-2026-26342firmware camera system creates an authentication token with insufficient expiration.
CVE-2026-21622Package manager for Erlang uses password reset tokens that do not expire.
CVE-2026-8760Wordpress 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.