CWE · MITRE source
CWE-395Use of NullPointerException Catch to Detect NULL Pointer Dereference
Catching NullPointerException should not be used as an alternative to programmatic checks to prevent dereferencing a null pointer.
Programmers typically catch NullPointerException under three circumstances: Of these three circumstances, only the last is acceptable.
Last updated: 09 May 2026 03:25 UTC
NIST 800-53 r5 controls that address this weakness (0)AI
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
| No NIST controls proposed yet. | |||
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2025-27466 | 2.0 | 9.8 | 0.0003 | 2025-09-11 |
CVE-2025-58142 | 2.0 | 9.8 | 0.0003 | 2025-09-11 |
CVE-2022-2832 | 1.5 | 7.5 | 0.0078 | 2022-08-16 |
CVE-2025-15514 | 1.5 | 7.5 | 0.0009 | 2026-01-12 |
CVE-2022-29508 | 1.3 | 6.3 | 0.0010 | 2023-05-10 |
CVE-2024-27658 | 1.3 | 6.5 | 0.0004 | 2024-02-29 |
CVE-2024-27659 | 1.3 | 6.5 | 0.0004 | 2024-02-29 |
CVE-2024-27661 | 1.3 | 6.5 | 0.0004 | 2024-02-29 |
CVE-2024-27662 | 1.3 | 6.5 | 0.0004 | 2024-02-29 |
CVE-2022-42879 | 1.2 | 6.1 | 0.0006 | 2023-11-14 |
CVE-2023-23904 | 1.2 | 6.1 | 0.0005 | 2024-09-16 |
CVE-2024-36275 | 1.2 | 6.1 | 0.0001 | 2024-11-13 |
CVE-2023-25071 | 1.1 | 5.6 | 0.0007 | 2023-11-14 |
CVE-2023-41082 | 0.9 | 4.4 | 0.0006 | 2024-05-16 |
CVE-2023-48727 | 0.7 | 3.3 | 0.0004 | 2024-05-16 |
CVE-2022-42878 | 0.6 | 2.8 | 0.0011 | 2023-05-10 |
CVE-2024-28030 | 0.4 | 2.2 | 0.0004 | 2024-11-13 |