CWE-733: Compiler Optimization Removal or Modification of Security-critical Code
The developer builds a security-critical protection mechanism into the software, but the compiler optimizes the program such that the mechanism is removed or modified.
Last updated
Overview
CWE-733 (Compiler Optimization Removal or Modification of Security-critical Code) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
5 recorded CVEs are caused by CWE-733 (Compiler Optimization Removal or Modification of Security-critical Code). The highest-severity and most recent are shown first. 0 new CWE-733 CVEs have been recorded so far in 2026 (4 in 2025).