---
title: "CWE-1473: Improper Expiration of Cached Data"
url: https://radicalnotion.ai/cwe/cwe-1473
type: cwe
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."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1473: Improper Expiration of Cached Data

- **Abstraction:** Class
- **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 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.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Common consequences

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

## Potential mitigations

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

## Demonstrative examples

### Example 1

Some JVM implementations cache DNS resolution results by default.

Good code:

```algorithm
To mitigate this situation, the DNS cache setting networkaddress.cache.ttl for the JVM needs to be set appropriately.
```

This results in a situation where changes to DNS records seemingly do not take effect in the program. This could cause the product to communicate with IP addresses that are no longer associated with the updated DNS records.

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-664](https://radicalnotion.ai/cwe/cwe-664) | Improper Control of a Resource Through its Lifetime |

## Frequently asked questions

### What is CWE-1473?

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.

### How do you prevent CWE-1473?

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.

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

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

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

---

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