CWEweakness
CWE-1037 Processor Optimization Removal or Modification of Security-critical Code
Low
Official page ↗
- Abstraction
- Base
- Structure
- Simple
- Status
- Incomplete
- Likelihood of exploit
- Low
- Languages
- Not Language-Specific
- CWE version
- 5.0
Description
The developer builds a security-critical protection mechanism into the software, but the processor optimizes the execution of the program such that the mechanism is removed or modified.
Common consequences
• Integrity: Bypass Protection Mechanism — A successful exploitation of this weakness will change the order of an application's execution and will likely be used to bypass specific protection mechanisms. This bypass can be exploited further to potentially read data that should otherwise be unaccessible.
Detection methods
• White Box: In theory this weakness can be detected through the use of white box testing techniques where specifically crafted test cases are used in conjunction with debuggers to verify the order of statements being executed.
Observed examples
• CVE-2017-5715: Intel, ARM, and AMD processor optimizations related to speculative execution and branch prediction cause access control checks to be bypassed when placing data into the cache. Often known as "Spectre".
• CVE-2017-5753: Intel, ARM, and AMD processor optimizations related to speculative execution and branch prediction cause access control checks to be bypassed when placing data into the cache. Often known as "Spectre".
• CVE-2017-5754: Intel processor optimizations related to speculative execution cause access control checks to be bypassed when placing data into the cache. Often known as "Meltdown".
Related
Attack pattern · CAPEC (1)
- CAPEC-663 Exploitation of Transient Instruction Execution attack pattern
Observed example · CVE (3)
- CVE-2017-5715 Systems with microprocessors utilizing speculative execution and indirect branch prediction may allow unauthorized disclosure of… vulnerability
- CVE-2017-5753 Systems with microprocessors utilizing speculative execution and branch prediction may allow unauthorized disclosure of information to an… vulnerability
- CVE-2017-5754 Systems with microprocessors utilizing speculative execution and indirect branch prediction may allow unauthorized disclosure of… vulnerability
Child of · CWE (1)
- CWE-1038 Insecure Automated Optimizations weakness
Referenced by CAPEC · weakness (1)
- CAPEC-663 Exploitation of Transient Instruction Execution attack pattern
Referenced by CVE · weakness (5)
- CVE-2025-26636 Processor optimization removal or modification of security-critical code in Windows Kernel allows an authorized attacker to disclose… vulnerability
- CVE-2025-48809 Processor optimization removal or modification of security-critical code in Windows Kernel allows an authorized attacker to disclose… vulnerability
- CVE-2025-48810 Processor optimization removal or modification of security-critical code in Windows Secure Kernel Mode allows an authorized attacker to… vulnerability
- CVE-2024-45335 Trend Micro Antivirus One, version 3.10.4 and below contains a vulnerability that could allow an attacker to use a specifically crafted… vulnerability
- CVE-2024-37985 Windows Kernel Information Disclosure Vulnerability vulnerability
Referenced by CWE · peer of (1)
- CWE-1264 Hardware Logic with Insecure De-Synchronization between Control and Data Channels weakness