CWE-431 · Słabość
Missing Handler
- Abstrakcja
- Bazowa
- Status
- Szkic
- Dodano
- 19 lipca 2006
- Ostatnia zmiana
- 11 grudnia 2025
Opis
A handler is not available or implemented.
When an exception is thrown and not caught, the process has given up an opportunity to decide if a given failure or event is worth a change in execution.
Skutki
Other
Varies by Context
Zapobieganie
Implementation
Handle all possible situations (e.g. error condition).
Implementation
If an operation can throw an Exception, implement a handler for that specific exception.
Przykłady podatności
- CVE-2022-25302 SDK for OPC Unified Architecture (OPC UA) is missing a handler for when a cast fails, allowing for a crash
Słabość nadrzędna
Może prowadzić do
Kiedy powstaje
- Implementation
Dotyczy
Not Language-Specific
Źródła
- The Art of Software Security Assessment — Mark Dowd, John McDonald, Justin Schuh, Chapter 3, "File Handlers", Page 74, Addison Wesley, 2006
Wpis z katalogu CWE 4.20.