CWE Database
/

CWE-664

Back to CWE list

CWE-664

Improper Control of a Resource Through its Lifetime

Pillar
Draft

Description

The product does not maintain or incorrectly maintains control over a resource throughout its lifetime of creation, use, and release.

{"xhtml:p":["Resources often have explicit instructions on how to be created, used and destroyed. When code does not follow these instructions, it can lead to unexpected behaviors and potentially exploitable states.","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.\""]}

Common Consequences

Scope

Other

Impact

Other

CVE-2018-1000613

Cryptography API uses unsafe reflection when deserializing a private key

CVE-2019-19911

Chain: Python library does not limit the resources used to process images that specify a very large number of bands (CWE-1284), leading to excessive memory consumption (CWE-789) or an integer overflow (CWE-190).

Applicable Platforms

Not Language-Specific

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now
CWE-664: Improper Control of a Resource Through its Lifetime | QwikSec