Skip to content
OpenAdvisories

Weakness (CWE)

CWE-252: Unchecked Return Value

Base Draft

The product does not check the return value from a method or function.

How to prevent it (4 mitigations)
  1. Implementation

    Check the results of all functions that return a value and verify that the value is expected.

  2. Implementation

    For any pointers that could have been modified or provided from a function that can return NULL, check the pointer for NULL before use. When working with a multithreaded or otherwise asynchronous environment, ensure that proper locking APIs are used to lock before the check, and unlock when it has finished [REF-1484].

  3. Implementation

    Ensure that you account for all possible return values from the function.

  4. Implementation

    When designing a function, make sure you return a value or throw an exception in case of an error.

Source: MITRE CWE-252

15 results · Clear filters · Feed

  • Low 2.9

    Unchecked return value in Performance in Google Chrome prior to 154.0.8037.57 allowed a local attacker to potentially r…

  • Low 3.1

    Snipe-IT before 8.7.0 Acceptance Finalization Without Stored Evidence

    Snipe-IT 8.6.3 and earlier do not check the return value of Storage::put() when writing the signature PNG and the generated acceptance PDF in Account\AcceptanceController::store(). On filesystem drivers that return false instead of throwing on a write failure…

  • Low 2.9

    xmlregexp in libxml2 before 2.15.4 has a NULL pointer dereference in xmlRegNewParserCtxt after a strdup failure, i.e., …

  • Low 3.7
    CVE-2026-26080 Public exploit

    HAProxy Community Edition 3.2.x through 3.3.x before 3.3.3 can enter a loop or crash because varint is mishandled. HAPr…

  • Low 3.7

    ImageMagick before 7.1.2-26 Heap Use-After-Free via XMP

    ImageMagick before 7.1.2-26 contains a heap use-after-free vulnerability caused by missing null check when parsing XMP profiles. Attackers can craft malicious image files with specially crafted XMP data to trigger the vulnerability and cause application crash…

  • Low 3.3

    uutils coreutils dd Silent Data Corruption via Unconditional Truncation Error Suppression

    The dd utility in uutils coreutils suppresses errors during file truncation operations by unconditionally calling Result::ok() on truncation attempts. While intended to mimic GNU behavior for special files like /dev/null, the uutils implementation also hides …

  • Low 3.3

    GNU Binutils prdbg.c tg_tag_type return value

    A security flaw has been discovered in GNU Binutils 2.45. Impacted is the function tg_tag_type of the file prdbg.c. Performing a manipulation results in unchecked return value. The attack needs to be approached locally. The exploit has been released to the pu…

  • Low 2.5

    An Unchecked Return Value vulnerability [CWE-252] in Fortinet FortiOS version 7.6.0 through 7.6.3 and before 7.4.8 API …

  • Low 3.5

    NASA CryptoLib before 1.3.2 does not check the OTAR crypto function returned status, potentially leading to spacecraft …

  • Low 2.0

    Unchecked return value in some Intel(R) Thunderbolt(TM) DCH drivers for Windows before version 88 may allow an unauthen…

  • Low 3.4

    QTS, QuTS hero

    An unchecked return value vulnerability has been reported to affect several QNAP operating system versions. If exploited, the vulnerability could allow local authenticated administrators to place the system in a state that could lead to a crash or other unint…

  • Low 3.7

    Libssh: missing checks for return values for digests

    A flaw was found in the libssh implements abstract layer for message digest (MD) operations implemented by different supported crypto backends. The return values from these were not properly checked, which could cause low-memory situations failures, NULL dere…

  • Low 3.7

    A vulnerability has been identified in RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2) (All versions < V8.0), RUGGEDCO…

  • Low 2.6

    Missing error check and insufficient random bytes in HTTP Digest authentication for SOAP

    In PHP versions 8.0.* before 8.0.29, 8.1.* before 8.1.20, 8.2.* before 8.2.7 when using SOAP HTTP Digest Authentication, random value generator was not checked for failure, and was using narrower range of values than it should have. In case of random generato…

  • Low 3.0

    Dell BIOS versions contain an Unchecked Return Value vulnerability. A local authenticated administrator user could pote…