Common Weakness Enumeration

    CWE Definition / CWE-666

    CWE-666: 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.

    Published:11 Apr 2008
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

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