Skip to content
OpenAdvisories

Weakness (CWE)

CWE-395: Use of NullPointerException Catch to Detect NULL Pointer Dereference

Variant Draft

Catching NullPointerException should not be used as an alternative to programmatic checks to prevent dereferencing a null pointer.

How to prevent it (1 mitigation)
  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.

Source: MITRE CWE-395

1 result · Clear filters · Feed

  • High 8.7

    Ollama Multi-Modal Model Image Processing NULL Pointer Dereference

    Ollama 0.11.5-rc0 through current version 0.13.5 contain a null pointer dereference vulnerability in the multi-modal model image processing functionality. When processing base64-encoded image data via the /api/chat endpoint, the application fails to validate …