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.
Potential Impact
Other
Varies by Context
Demonstrative Examples
protected void doPost (HttpServletRequest req, HttpServletResponse res) throws IOException {String ip = req.getRemoteAddr();InetAddress addr = InetAddress.getByName(ip);...out.println("hello " + addr.getHostName());}Mitigations & Prevention
Handle all possible situations (e.g. error condition).
If an operation can throw an Exception, implement a handler for that specific exception.
Real-World CVE Examples
| CVE ID | Description |
|---|---|
| CVE-2022-25302 | SDK for OPC Unified Architecture (OPC UA) is missing a handler for when a cast fails, allowing for a crash |
Related Weaknesses
Taxonomy Mappings
- PLOVER: — Missing Handler
- Software Fault Patterns: SFP4 — Unchecked Status Condition
Frequently Asked Questions
What is CWE-431?
CWE-431 (Missing Handler) is a software weakness identified by MITRE's Common Weakness Enumeration. It is classified as a Base-level weakness. A handler is not available or implemented.
How can CWE-431 be exploited?
Attackers can exploit CWE-431 (Missing Handler) to varies by context. This weakness is typically introduced during the Implementation phase of software development.
How do I prevent CWE-431?
Key mitigations include: Handle all possible situations (e.g. error condition).
What is the severity of CWE-431?
CWE-431 is classified as a Base-level weakness (Medium abstraction). It has been observed in 1 real-world CVEs.