CWE-664: Improper Control of a Resource Through its Lifetime
The product does not maintain or incorrectly maintains control over a resource throughout its lifetime of creation, use, and release.
Last updated
Overview
CWE-664 (Improper Control of a Resource Through its Lifetime) is a pillar-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Background
Resources often have explicit instructions on how to be created, used, and destroyed. Even without explicit instructions, various principles are expected to be adhered to, such as "Do not use an object until after its creation is complete," or "do not use an object after it has been slated for destruction."
Real-world CVEs
127 recorded CVEs are caused by CWE-664 (Improper Control of a Resource Through its Lifetime), including 1 in CISA's KEV (Known Exploited Vulnerabilities) catalog. KEVs are shown first. 58 new CWE-664 CVEs have been recorded so far in 2026 (24 in 2025).