CWE-484 - Omitted Break Statement in Switch
CWE-484 Medium
- Abstraction:
- Base
- Structure:
- Simple
- Status:
- Draft
- Weakness Name
Omitted Break Statement in Switch
- Description
The product omits a break statement within a switch or similar construct, causing code associated with multiple conditions to execute. This can cause problems when the programmer only intended to execute code associated with one condition.
This can lead to critical code executing in situations where it should not.
- Common Consequences
Scope: Other
Impact: Alter Execution Logic
Notes: This weakness can cause unintended logic to be executed and other unexpected application behavior.
- Related Weaknesses
- Release Date:
- 2006-07-19
- Latest Modification Date:
- 2023-10-26
Free security scan for your website