Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-252 (未加检查的返回值) — Vulnerability Class 76

76 vulnerabilities classified as CWE-252 (未加检查的返回值). AI Chinese analysis included.

CWE-252 represents a critical programming weakness where software fails to verify the return value of a function or method, often stemming from the erroneous assumption that operations cannot fail or that their failure is inconsequential. This oversight allows attackers to exploit the vulnerability by forcing functions to return unexpected error codes or null values, thereby disrupting the intended execution flow. When the program proceeds without validating these outcomes, it may operate in an unstable state, leading to data corruption, denial of service, or privilege escalation. To mitigate this risk, developers must rigorously implement error-handling routines that explicitly check return statuses. By treating every function call as potentially hazardous and ensuring subsequent logic accounts for failure conditions, programmers can prevent attackers from manipulating program state through unchecked return values.

MITRE CWE Description
The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions. Two common programmer assumptions are "this function call can never fail" and "it doesn't matter if this function call fails". If an attacker can force the function to fail or otherwise return a value that is not expected, then the subsequent program logic could lead to a vulnerability, because the product is not in a state that the programmer assumes. For example, if the program calls a function to drop privileges but does not check the return code to ensure that privileges were successfully dropped, then the program will continue to operate with the higher privileges.
Common Consequences (1)
Availability, Integrity Unexpected State, DoS: Crash, Exit, or Restart
An unexpected return value could place the system in a state that could lead to a crash or other unintended behaviors.
Mitigations (4)
Implementation Check the results of all functions that return a value and verify that the value is expected.
Effectiveness: High
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].
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.
Examples (2)
Consider the following code segment:
char buf[10], cp_buf[10]; fgets(buf, 10, stdin); strcpy(cp_buf, buf);
Bad · C
In the following example, it is possible to request that memcpy move a much larger segment of memory than assumed:
int returnChunkSize(void *) { /* if chunk info is valid, return the size of usable memory, * else, return -1 to indicate an error */ ... } int main() { ... memcpy(destBuf, srcBuf, (returnChunkSize(destBuf)-1)); ... }
Bad · C
CVE ID Title CVSS Severity Published
CVE-2026-71180 Dell Update Package Framework 26.07.03 前返回值未检查 — Update Package Framework 8.2 High 2026-09-16
CVE-2026-90648 WebAssembly WABT 异常处理不当漏洞 — wabt 7.1 High 2026-09-12
CVE-2026-86749 snipe-it before 8.7.0 Data Loss via Failed Image Write — snipe-it 6.3 Medium 2026-09-09
CVE-2026-86739 Snipe-IT before 8.7.0 Acceptance Finalization Without Stored Evidence — snipe-it 3.1 Low 2026-09-09
CVE-2026-86141 Xmlsoft libxml2 异常处理不当漏洞 — libxml2 2.9 Low 2026-09-05
CVE-2026-78699 rename_tenant returns :ok on a failed rename, enabling cross-tenant access in AshPostgres — ash_postgres 7.2 High 2026-08-30
CVE-2026-79772 Nokogiri before 1.19.1 Unchecked Return Value canonicalize — nokogiri 5.3 Medium 2026-08-25
CVE-2026-77641 torproject Tor 异常处理不当漏洞 — Tor 6.5 Medium 2026-08-20
CVE-2026-47245 MyBB: Buddy list corruption — mybb 4.3 Medium 2026-08-18
CVE-2026-62909 .NET Elevation of Privilege Vulnerability — .NET 10.0 7.8 High 2026-08-11
CVE-2026-26080 HAProxy 安全漏洞 — HAProxy 3.7 Low 2026-07-20
CVE-2026-61857 ImageMagick before 7.1.2-26 Heap Use-After-Free via XMP — ImageMagick 3.7 Low 2026-07-11
CVE-2026-11972 tarfile opened in streaming mode mishandles EOF — CPython 8.2 High 2026-06-23
CVE-2026-40092 nimiq-keys: Unchecked Ed25519 signature length in TaggedPublicKey::verify causes remote node panic via DHT — core-rs-albatross 7.5 High 2026-05-20
CVE-2025-29938 AMD多款产品 安全漏洞 — AMD Ryzen™ 7035 Series Processors with Radeon™ Graphics (formerly codenamed "Rembrandt R") - - 2026-05-15
CVE-2025-0028 AMD Chipset 安全漏洞 — AMD Ryzen™ 7035 Series Processors with Radeon™ Graphics (formerly codenamed "Rembrandt R") - - 2026-05-15
CVE-2026-40060 BIG-IP Advanced WAF and ASM vulnerability — BIG-IP 7.5 High 2026-05-13
CVE-2026-34065 nimiq-primitives: Node crash due to missing interlink validation in election macro block proposals — nimiq-primitives 7.5 High 2026-04-22
CVE-2026-35344 uutils coreutils dd Silent Data Corruption via Unconditional Truncation Error Suppression — coreutils 3.3 Low 2026-04-22
CVE-2026-35468 nimiq/core-rs-albatross: Panic in history index request handlers when a full node runs without the history index — core-rs-albatross 5.3 Medium 2026-04-03
CVE-2026-31830 sigstore-ruby verifier returns success for DSSE bundles with mismatched in-toto subject digest — sigstore-ruby 7.5 High 2026-03-10
CVE-2026-28691 ImageMagick has an uninitialized pointer dereference in JBIG decoder — ImageMagick 7.5 High 2026-03-09
CVE-2026-0723 Unchecked Return Value in GitLab — GitLab 7.4 High 2026-01-22
CVE-2026-21920 Junos OS: SRX Series: If a specific request is processed by the DNS subsystem flowd will crash — Junos OS 7.5 High 2026-01-15
CVE-2026-0421 Lenovo ThinkPad BIOS 安全漏洞 — ThinkPad L13 Gen 6 BIOS 6.5 Medium 2026-01-14
CVE-2026-22861 iccDEV has a heap-buffer-overflow in SIccCalcOp::Describe() at IccProfLib/IccMpeCalc.cpp — iccDEV 8.8 High 2026-01-13
CVE-2026-21492 iccDEV ToneMap Writer has NULL Pointer Member Call — iccDEV 5.5 Medium 2026-01-06
CVE-2025-66565 Fiber Utils UUIDv4 and UUID Silent Fallback to Predictable Values — utils 7.5AI High AI 2025-12-09
CVE-2025-64169 Wazuh NULL pointer dereference in fim_alert line 666 — wazuh 7.5 - 2025-11-21
CVE-2025-62791 Wazuh vulnerable to NULL pointer dereference in DecodeCiscat — wazuh 7.5AI High AI 2025-10-29

Vulnerabilities classified as CWE-252 (未加检查的返回值) represent 76 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.