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. None so far in 2026 (4 in 2025).
- CVE-2025-13024
JIT miscompilation in the JavaScript Engine: JIT component
Critical · CVSS 9.8 · EPSS 50th2025-11-11 - CVE-2025-52496
mbedtls: Mbed TLS AESNI Race Condition Vulnerability
High · CVSS 7.8 · EPSS 9th2025-07-04 - CVE-2020-15294
Compiler Optimization Removal or Modification of Security-Critical Code vulnerability in Bitdefender Hypervisor Introspection (VA-9339)