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

Declaration of Catch for Generic Exception

Catching overly broad exceptions promotes complex error handling code that is more likely to contain security vulnerabilities.

Part of: CWE-705 · Incorrect Control Flow Scoping

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

What it is

Catching overly broad exceptions promotes complex error handling code that is more likely to contain security vulnerabilities.

Impact on systems

ScopeImpact
Non-Repudiation, Other Hide Activities
Multiple catch blocks can get ugly and repetitive, but condensing catch blocks by catching a high-level class like Exception can obscure exceptions that deserve special treatment or that should not be caught at this point in the program. Catching an overly broad exception essentially defeats the purpose of a language's typed exceptions, and can become particularly dangerous if the program grows and begins to throw new types of exceptions. The new exception types will not receive any attention. A generic exception can hide details about unexpected adversary activities by making it difficult to properly troubleshoot error conditions during execution.

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

All CWE-396 CVEs

2 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.