CWE-1038β€”Insecure Automated Optimizations

PUBLISHEDweakness recordLow
released 2018-03-29 Β· last modified 2025-12-11

Metadata

CWE ID:
CWE-1038
Abstraction:
Class
Structure:
Simple
Status:
Draft
Release Date:
2018-03-29
Latest Modification Date:
2025-12-11

Weakness Name

Insecure Automated Optimizations

Description

The product uses a mechanism that automatically optimizes code, e.g. to improve a characteristic such as performance, but the optimizations can have an unintended side effect that might violate an intended security assumption.

Common Consequences

Scope:
Integrity
Impact:
Alter Execution Logic
Notes:
The optimizations alter the order of execution resulting in side effects that were not intended by the original developer.

Related Weaknesses