BaseDraft
CWE-395Use of NullPointerException Catch to Detect NULL Pointer Dereference
Category: memory
Description
Catching NullPointerException should not be used as an alternative to programmatic checks to prevent dereferencing a null pointer.
Common consequences· 1
- Availability — DoS: Resource Consumption (CPU)
Potential mitigations· 1
- [Architecture and Design, Implementation]Do not extensively rely on catching exceptions (especially for validating user input) to handle errors. Handling exceptions can decrease the performance of an application.
References
(incoming)2
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Vulnerability | CVE-2025-27466cve-2025-27466 | 0% | live |
| Vulnerability | CVE-2025-58142cve-2025-58142 | 0% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.