CWE-431 — Missing Handler
CWE-431: Missing Handler
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Base |
| Status | Draft |
| Likelihood of exploit | — |
Description
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.
Common consequences
- Other: Varies by Context
Mitigations
Implementation — Handle all possible situations (e.g. error condition).
Implementation — If an operation can throw an Exception, implement a handler for that specific exception.
References
- CWE page: https://cwe.mitre.org/data/definitions/431.html
- CWE list: https://cwe.mitre.org/data/index.html