CWE-664: Improper Control of a Resource Through its Lifetime
Pillar
The product does not maintain or incorrectly maintains control over a resource throughout its lifetime of creation, use, and release.
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."
Consequences
- Other: Other
Recent advisories
- GHSA-f9jp-856v-8642 — PocketMine-MP: Player entities can still die and drop items in flaggedForDespawn state
- GHSA-rr8g-9fpq-6wmg — Tokio broadcast channel calls clone in parallel, but does not require `Sync`
- CVE-2022-27518 — Unauthenticated remote arbitrary code execution
- GO-2022-0599 — Improper Control of a Resource Through its Lifetime in Mattermost
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor