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

Compiler Removal of Code to Clear Buffers

Sensitive memory is cleared according to the source code, but compiler optimizations leave the memory untouched when it is not read from again, aka dead store removal.

Part of: CWE-733 · Compiler Optimization Removal or Modification of Security-critical Code

10CVEs of this type in the archive
0critical (CVSS ≥ 9)
8high severity (7–8.9)
Jun 18, 2026latest published

What it is

Sensitive memory is cleared according to the source code, but compiler optimizations leave the memory untouched when it is not read from again, aka dead store removal.

Impact on systems

ScopeImpact
Confidentiality, Access Control Read Memory, Bypass Protection Mechanism
This weakness will allow data that has not been cleared from memory to be read. If this data contains sensitive password information, then an attacker can read the password and use the information to bypass protection mechanisms.

How to prevent it

Implementation Store the sensitive data in a volatile memory location if available.
Build and Compilation If possible, configure the compiler so that it does not remove dead stores.
Architecture and Design Where possible, encrypt sensitive data that are used by a software system.

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

CWE-14 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20238
20262

All CWE-14 CVEs

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