CWE-248: Uncaught Exception

What is CWE-248?

CWE-248 is Uncaught Exception. The flaw arises when an exception is thrown from a function, but it is not caught. The database currently holds 210 vulnerabilities mapped to CWE-248 and none of them are in the CISA Known Exploited Vulnerabilities catalog.

OWASP Top 10 (2025) rank10 — A10:2025 — Mishandling of Exceptional Conditions
Related CVES (365 days)210
AbstractionBase
Likelihood of exploit-

Vulnerabilities mapped to CWE-248

210 vulnerabilities855% increase year over year

No data

No vulnerability data in CISA KEV for CWE-248

Official definition

ByMitre CWE

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

Characteristics

Modes of introduction

  • Implementation

Common consequences

ImpactScopeExplanation
DoS: Crash, Exit, or Restart, Read Application DataAvailability, ConfidentialityAn uncaught exception could cause the system to be placed in a state that could lead to a crash, exposure of sensitive information, or other unintended behaviors.

Risk mitigations

  1. RequirementsThe choice between a language which has named or unnamed exceptions needs to be done. While unnamed exceptions exacerbate the chance of not properly dealing with an exception, named exceptions suffer from the up call version of the weak base class problem.
  2. RequirementsA language can be used which requires, at compile time, to catch all serious exceptions. However, one must make sure to use the most current version of the API as new exceptions could be added.
  3. ImplementationCatch all relevant exceptions. This is the recommended solution. Ensure that all exceptions are handled in such a way that you can be sure of the state of your system at any given moment.

Detection methods

MethodApproachEffectiveness
Automated Static AnalysisAutomated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)High

Representative vulnerabilities

Sources (4)

CWE™ Program, operated by The MITRE Corporation. Copyright © 2006–2026, The MITRE Corporation. The MITRE Corporation hereby grants you a non-exclusive, royalty-free license to use CWE for research, development, and commercial purposes. CWE Terms of Use.

Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.