[Forgot Password]
Login  Register Subscribe

30479

 
 

423868

 
 

248392

 
 

909

 
 

195452

 
 

282

Paid content will be excluded from the download.


Download | Alert*
CWE
view XML

Uncaught Exception

ID: 248Date: (C)2012-05-14   (M)2022-10-10
Type: weaknessStatus: DRAFT
Abstraction Type: Base





Description

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

Extended Description

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

Applicable Platforms
Language: C++
Language: Java
Language: .NET

Time Of Introduction

  • Implementation

Related Attack Patterns

Common Consequences

ScopeTechnical ImpactNotes
Availability
Confidentiality
 
DoS: crash / exit / restart
Read application data
 
An 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.
 

Detection Methods
None

Potential Mitigations
None

Relationships

Related CWETypeViewChain
CWE-248 ChildOf CWE-889 Category CWE-888  

Demonstrative Examples   (Details)

  1. EnterCriticalSection() can raise an exception, potentially causing the program to crash. Under operating systems prior to Windows 2000, the EnterCriticalSection() function can raise an exception in low memory situations. If the exception is not caught, the program will crash, potentially enabling a denial of service attack.
  2. In the following method a DNS lookup failure will cause the Servlet to throw an exception. (Demonstrative Example Id DX-39)
  3. The _alloca() function allocates memory on the stack. If an allocation request is too large for the available stack space, _alloca() throws an exception. If the exception is not caught, the program will crash, potentially enabling a denial of service attack. _alloca() has been deprecated as of Microsoft Visual Studio 2005(R). It has been replaced with the more secure _alloca_s().

White Box Definitions
None

Black Box Definitions
None

Taxynomy Mappings

TaxynomyIdNameFit
7 Pernicious Kingdoms  Often Misused: Exception Handling
 
 
CERT Java Secure Coding ERR05-J
 
Do not let checked exceptions escape from a finally block
 
 
CERT Java Secure Coding ERR06-J
 
Do not throw undeclared checked exceptions
 
 

References:
None

CVE    3
CVE-2021-32694
CVE-2021-37714
CVE-2020-15796

© SecPod Technologies