1. CVE archive
  2. Vulnerability types
  3. CWE-666
CWE-666 · #529 most frequent type in the archive

Operation on Resource in Wrong Phase of Lifetime

The product performs an operation on a resource at the wrong phase of the resource's lifecycle, which can lead to unexpected behaviors.

Part of: CWE-664 · Improper Control of a Resource Through its Lifetime

5CVEs of this type in the archive
1critical (CVSS ≥ 9)
0high severity (7–8.9)
Nov 4, 2026latest published

What it is

The product performs an operation on a resource at the wrong phase of the resource's lifecycle, which can lead to unexpected behaviors.

Impact on systems

ScopeImpact
Other Varies by Context, Modify Application Data
Using a resource before it has been fully initialized could cause corruption or incorrect data to be used.

How to prevent it

Architecture and Design Follow the resource's lifecycle from creation to release.
Implementation For each phase, it is important to follow the specifications outlined for how to operate on the resource and to ensure that the resource is in the expected phase. Otherwise, if a resource is in one phase but the operation is not valid for that phase (i.e., an incorrect phase of the resource's lifetime), then this can produce resultant weaknesses.

Source: MITRE CWE catalog · Official entry on the MITRE website

All CWE-666 CVEs

5 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.