This vulnerability occurs when a function throws an error or exception, but the calling code does not have a proper handler to catch and manage it.
Uncaught exceptions break the normal flow of your application. Instead of gracefully handling an unexpected condition—like a failed network request, invalid input, or missing file—the program will typically terminate abruptly. This leads to a poor user experience, interrupted operations, and makes debugging more difficult, as the root cause may be obscured by a generic crash. Beyond causing crashes, unhandled exceptions can leak sensitive internal details about your application's structure, such as stack traces, file paths, or even partial data. Attackers can use this information to map your system and plan further exploits. To prevent this, developers should implement strategic try-catch blocks around risky operations and define clear fallback behaviors or user-friendly error messages.
Impact: DoS: Crash, Exit, or RestartRead 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.
java