CWE-1473 Improper Expiration of Cached Data

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

Should you map to this?

Allowed with Review Can be used, but check a more specific entry doesn't fit better.

This CWE Entry is a Class and might have lower-level children that would be more appropriate

Examine children of this entry to see if there is a better fit

Description

The product uses or supports data in a cache, but it does not properly specify an expiration with a date, time, or time period that is sufficient for the intended security policy of the product or its adminstrators.

Common consequences

ScopeImpactNotes
Access Control, Integrity, OtherGain Privileges or Assume Identity, Bypass Protection Mechanism, Unexpected State, Varies by ContextIf the cached data is used for security-critical functionality such as authentication, authorization, or identity, then this might allow users or adversaries to perform operations beyond their expected lifetime. If the data is old but used for identification, such as DNS lookup results, then the stale data could point to entities that are no longer controlled by the intended owner.

Mitigations

  1. Architecture and Design, Implementation

    For each type of cached data, determine the best lifetime that balances efficiency provided by the cache with the security implications of the data becoming too stale. Explicitly specify an expiration date or time period.

Observed examples

ReferenceWhat happened
RESTful search engine caches DNS hostname lookups forever in order to prevent DNS spoofing attacks, but it will not be able to detect when the hostnames resolve to a different IP address.