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

Improper Resource Shutdown or Release

The product does not release or incorrectly releases a resource before it is made available for re-use.

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

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

What it is

The product does not release or incorrectly releases a resource before it is made available for re-use.

When a resource is created or allocated, the developer is responsible for properly releasing the resource as well as accounting for all potential paths of expiration or invalidation, such as a set period of time or revocation.

Impact on systems

ScopeImpact
Availability, Other DoS: Resource Consumption (Other), Varies by Context
Most unreleased resource issues result in general software reliability problems, but if an attacker can intentionally trigger a resource leak, the attacker might be able to launch a denial of service attack by depleting the resource pool.
Confidentiality Read Application Data
When a resource containing sensitive information is not correctly shutdown, it may expose the sensitive data in a subsequent allocation.

How to prevent it

Requirements · Language Selection Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, languages such as Java, Ruby, and Lisp perform automatic garbage collection that releases memory for objects that have been deallocated.
Implementation It is good practice to be responsible for freeing all resources you allocate and to be consistent with how and where you free memory in a function. If you allocate memory that you intend to free upon completion of the function, you must be sure to free the memory at all exit points for that function including error conditions.
Implementation Memory should be allocated/freed using matching functions such as malloc/free, new/delete, and new[]/delete[].
Implementation When releasing a complex object or structure, ensure that you properly dispose of all of its member components, not just the object itself.

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

CWE-404 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20101
20151
201715
201842
201916
202031
202117
202275
202378
202477
2025110
2026269

All CWE-404 CVEs

732 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.