1. CVE archive
  2. Vulnerability types
  3. CWE-484
CWE-484 · #743 most frequent type in the archive

Omitted Break Statement in Switch

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.

Part of: CWE-710 · Improper Adherence to Coding Standards

1CVEs of this type in the archive
0critical (CVSS ≥ 9)
0high severity (7–8.9)
May 21, 2026latest published

What it is

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.

Impact on systems

ScopeImpact
Other Alter Execution Logic
This weakness can cause unintended logic to be executed and other unexpected application behavior. It can lead to critical code executing in situations where it should not.

How to prevent it

Implementation Omitting a break statement so that one may fall through is often indistinguishable from an error, and therefore should be avoided. If you need to use fall-through capabilities, make sure that you have clearly documented this within the switch statement, and ensure that you have examined all the logical possibilities.
Implementation The functionality of omitting a break statement could be clarified with an if statement. This method is much safer.

Source: MITRE CWE catalog · Official entry on the MITRE website

All CWE-484 CVEs

1 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.