CWE-248: Uncaught Exception

BaseDraft

An exception is thrown from a function, but it is not caught.

View on MITRE
Back to CWE Lookup

Extended Description

When an exception is not caught, it may cause the program to crash or expose sensitive information.

Technical Details

Structure
Simple

Applicable To

Languages
C++JavaC#
Platforms

Frequently Asked Questions

What is CWE-248: Uncaught Exception?+

CWE-248: Uncaught Exception is a Common Weakness Enumeration (CWE) entry maintained by MITRE. An exception is thrown from a function, but it is not caught. When an exception is not caught, it may cause the program to crash or expose sensitive information.

What are the security consequences of Uncaught Exception?+

If exploited, CWE-248 (Uncaught Exception) it can compromise Availability and Confidentiality, leading to outcomes such as DoS: Crash, Exit, or Restart and Read Application Data.

Which programming languages are affected by Uncaught Exception?+

CWE-248 commonly affects C++, Java and C#. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What are real-world examples of Uncaught Exception?+

MITRE documents real CVEs mapped to CWE-248, including CVE-2023-41151 and CVE-2023-21087. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-248 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More

CWE-248: Uncaught Exception | CWE Lookup | InventiveHQ