CyberSecBulletin

Unchecked Return Value

CWE-252

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

We track 68 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 8.0. 1 has been exploited in real attacks.

How this weakness is prevented

  • Implementation: Check the results of all functions that return a value and verify that the value is expected.
  • 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.
  • Implementation: Ensure that you account for all possible return values from the function.
  • Implementation: When designing a function, make sure you return a value or throw an exception in case of an error.

Latest Unchecked Return Value vulnerabilities

  • 7.5 High severity

    libxml2: Unchecked Return Value

    CVE-2025-32414Xmlsoft

    In libxml2 before 2.13.8 and 2.14.x before 2.14.2, out-of-bounds memory access can occur in the Python API (Python bindings) because of an incorrect return value. This occurs in xmlPythonFileRead and xmlPythonFileReadRaw because of a difference between bytes a

  • 7.8 High severity

    libarchive: Unchecked Return Value

    CVE-2025-25724Libarchive

    list_item_verbose in tar/util.c in libarchive through 3.7.7 does not check an strftime return value, which can lead to a denial of service or unspecified other impact via a crafted TAR archive that is read with a verbose value of 2. For example, the 100-byte b

  • 9.1 Critical severity

    Apache Traffic Server: Unchecked Return Value

    CVE-2024-50306ApacheEPSS 1.57%

    Unchecked return value can allow Apache Traffic Server to retain privileges on startup. This issue affects Apache Traffic Server: from 9.2.0 through 9.2.5, from 10.0.0 through 10.0.1. Users are recommended to upgrade to version 9.2.6 or 10.0.2, which fixes the

  • 7.5 High severity

    Dual-redundant Platform for Computer (PC2CKM): Unchecked Return Value

    CVE-2024-8110Yokogawa Electric

    Denial of Service (DoS) vulnerability has been found in Dual-redundant Platform for Computer. If a computer on which the affected product is installed receives a large number of UDP broadcast packets in a short period, occasionally that computer may restart. I

  • 8.8 High severity

    wolfCrypt: Improper Neutralization of Special Elements in Output Used by a Downstream Component

    CVE-2024-2881wolfSSL

    Fault Injection vulnerability in wc_ed25519_sign_msg function in wolfssl/wolfcrypt/src/ed25519.c in WolfSSL wolfssl5.6.6 on Linux/Windows allows remote attacker co-resides in the same system with a victim process to disclose information and escalate privileges

  • 8.8 High severity

    wolfCrypt: Improper Neutralization of Special Elements in Output Used by a Downstream Component

    CVE-2024-1545wolfSSL

    Fault Injection vulnerability in RsaPrivateDecryption function in wolfssl/wolfcrypt/src/rsa.c in WolfSSL wolfssl5.6.6 on Linux/Windows allows remote attacker co-resides in the same system with a victim process to disclose information and escalate privileges vi

  • 7.0 High severity

    Linux: Unchecked Return Value

    CVE-2024-39492Linux

    In the Linux kernel, the following vulnerability has been resolved: mailbox: mtk-cmdq: Fix pm_runtime_get_sync() warning in mbox shutdown The return value of pm_runtime_get_sync() in cmdq_mbox_shutdown() will return 1 when pm runtime state is active, and we do

  • 8.8 High severity

    demoiccmax: Unchecked Return Value

    CVE-2024-38427Color

    In International Color Consortium DemoIccMAX before 85ce74e, a logic flaw in CIccTagXmlProfileSequenceId::ParseXml in IccXML/IccLibXML/IccTagXml.cpp results in unconditionally returning false.

  • 7.5 High severity

    Sage 1410: Unchecked Return Value

    CVE-2024-37039Schneider Electric

    CWE-252: Unchecked Return Value vulnerability exists that could cause denial of service of the device when an attacker sends a specially crafted HTTP request.

  • 7.6 High severity

    Intel(R) Stratix 10 and Intel(R) Agilex 7 FPGAs: Unchecked Return Value

    Unchecked return value in SDM firmware for Intel(R) Stratix 10 and Intel(R) Agilex 7 FPGAs before version 23.3 may allow an authenticated user to potentially enable denial of service via adjacent access.

  • 7.5 High severity

    Firefox: Unchecked Return Value

    CVE-2024-0743MozillaEPSS 1.29%

    An unchecked return value in TLS handshake code could have caused a potentially exploitable crash. This vulnerability affects Firefox < 122, Firefox ESR < 115.9, and Thunderbird < 115.9.

  • 8.8 High severity

    Junos OS: Unchecked Return Value

    CVE-2023-44182Juniper Networks

    An Unchecked Return Value vulnerability in the user interfaces to the Juniper Networks Junos OS and Junos OS Evolved, the CLI, the XML API, the XML Management Protocol, the NETCONF Management Protocol, the gNMI interfaces, and the J-Web User Interfaces causes

  • 7.8 High severity

    Inetutils: Unchecked Return Value

    CVE-2023-40303GNU

    GNU inetutils before 2.5 may allow privilege escalation because of unchecked return values of set*id() family functions in ftpd, rcp, rlogin, rsh, rshd, and uucpd. This is, for example, relevant if the setuid system call fails when a process is trying to drop

  • 7.5 High severity

    Firefox: Unchecked Return Value

    CVE-2023-25733Mozilla

    The return value from `gfx::SourceSurfaceSkia::Map()` wasn't being verified which could have potentially lead to a null pointer dereference. This vulnerability affects Firefox < 110.

  • 7.5 High severity

    RIOT: Unchecked Return Value

    CVE-2023-24825Riot-os

    RIOT-OS, an operating system for Internet of Things (IoT) devices, contains a network stack with the ability to process 6LoWPAN frames. Prior to version 2023.04, an attacker can send a crafted frame to the device to trigger a NULL pointer dereference leading t

  • 7.5 High severity

    B&R APROL: Unchecked Return Value

    CVE-2022-43765B&R Industrial Automation

    B&R APROL versions < R 4.2-07 doesn’t process correctly specially formatted data packages sent to port 55502/tcp, which may allow a network based attacker to cause an application Denial-of-Service.

  • 7.5 High severity

    B&R APROL: Unchecked Return Value

    CVE-2022-43763B&R Industrial Automation

    Insufficient check of preconditions could lead to Denial of Service conditions when calling commands on the Tbase server of B&R APROL versions < R 4.2-07.

  • 7.5 High severity

    go-merkledag: Unchecked Return Value

    CVE-2022-23495IpfsEPSS 1.41%

    go-merkledag implements the 'DAGService' interface and adds two ipld node types, Protobuf and Raw for the ipfs project. A `ProtoNode` may be modified in such a way as to cause various encode errors which will trigger a panic on common method calls that don't a

  • 7.5 High severity

    nokogiri: Unchecked Return Value

    CVE-2022-23476SparklemotionEPSS 1.83%

    Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method `Nokogiri::XML::Reader#attribute_hash`. This can lead to a null pointer ex

  • 9.8 Critical severity

    Snapdragon Auto, Snapdragon Connectivity…: Unchecked Return Value

    CVE-2022-25718Qualcomm

    Cryptographic issue in WLAN due to improper check on return value while authentication handshake in Snapdragon Auto, Snapdragon Connectivity, Snapdragon Consumer Electronics Connectivity, Snapdragon Consumer IOT, Snapdragon Industrial IOT, Snapdragon IoT, Snap

  • 7.5 High severity

    Junos OS: Unchecked Return Value

    CVE-2022-22231Juniper Networks

    An Unchecked Return Value to NULL Pointer Dereference vulnerability in Packet Forwarding Engine (PFE) of Juniper Networks Junos OS allows an unauthenticated, network-based attacker to cause a Denial of Service (DoS). On SRX Series if Unified Threat Management

  • 7.5 High severity

    Tizenrt: Unchecked Return Value

    CVE-2022-40279SamsungEPSS 1.5%

    An issue was discovered in Samsung TizenRT through 3.0_GBM (and 3.1_PRE). l2_packet_receive_timeout in wpa_supplicant/src/l2_packet/l2_packet_pcap.c has a missing check on the return value of pcap_dispatch, leading to a denial of service (malfunction).

  • 7.5 High severity

    undertow: Unchecked Return Value

    CVE-2022-1319UndertowEPSS 1.7%

    A flaw was found in Undertow. For an AJP 400 response, EAP 7 is improperly sending two response packets, and those packets have the reuse flag set even though JBoss EAP closes the connection. A failure occurs when the connection is reused after a 400 by CPING

  • 7.5 High severity

    openzeppelin-contracts: Unchecked Return Value

    CVE-2022-31170OpenZeppelin

    OpenZeppelin Contracts is a library for smart contract development. Versions 4.0.0 until 4.7.1 are vulnerable to ERC165Checker reverting instead of returning `false`. `ERC165Checker.supportsInterface` is designed to always successfully return a boolean, and un

  • 7.5 High severity

    parse-server: Unchecked Return Value

    CVE-2022-31089Parse-communityEPSS 1.16%

    Parse Server is an open source backend that can be deployed to any infrastructure that can run Node.js. In affected versions certain types of invalid files requests are not handled properly and can crash the server. If you are running multiple Parse Server ins

  • 7.5 High severity

    posix: Unchecked Return Value

    CVE-2022-21211PosixEPSS 1.06%

    This affects all versions of package posix. When invoking the toString method, it will fallback to 0x0 value, as the value of toString is not invokable (not a function), and then it will crash with type-check.

  • 9.1 Critical severity

    Go: Unchecked Return Value

    CVE-2022-23806GoEPSS 3.07%

    Curve.IsOnCurve in crypto/elliptic in Go before 1.16.14 and 1.17.x before 1.17.7 can incorrectly return true in situations with a big.Int value that is not a valid field element.

  • 8.8 High severity

    blog: Unchecked Return Value

    CVE-2022-23626M1k1oEPSS 9.87%

    m1k1o/blog is a lightweight self-hosted facebook-styled PHP blog. Errors from functions `imagecreatefrom*` and `image*` have not been checked properly. Although PHP issued warnings and the upload function returned `false`, the original file (that could contain