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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-754 (对因果或异常条件的不恰当检查) — Vulnerability Class 272

272 vulnerabilities classified as CWE-754 (对因果或异常条件的不恰当检查). AI Chinese analysis included.

CWE-754 represents a critical software weakness where applications fail to properly validate or handle unexpected environmental states, such as resource exhaustion, permission denials, or malformed inputs. Developers often exploit this oversight by assuming routine operational conditions will always hold true, leading to crashes, data corruption, or security breaches when rare events occur. Attackers typically trigger these exceptional conditions to cause denial-of-service attacks or to bypass security controls by forcing the application into an undefined state. To mitigate this risk, engineers must implement robust error handling mechanisms that explicitly check for and gracefully manage unusual scenarios. This includes validating resource availability, verifying user permissions, and ensuring inputs meet expected formats before processing, thereby maintaining system stability and security even under adverse or unexpected operating conditions.

MITRE CWE Description
The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product. The programmer may assume that certain events or conditions will never occur or do not need to be worried about, such as low memory conditions, lack of access to resources due to restrictive permissions, or misbehaving clients or components. However, attackers may intentionally trigger these unusual conditions, thus violating the programmer's assumptions, possibly introducing instability, incorrect behavior, or a vulnerability. Note that this entry is not exclusively about the use of exceptions and exception handling, which are mechanisms for both checking and handling unusual or unexpected conditions.
Common Consequences (1)
Integrity, AvailabilityDoS: Crash, Exit, or Restart, Unexpected State
The data which were produced as a result of a function call could be in a bad state upon return. If the return value is not checked, then this bad data may be used in operations, possibly leading to a crash or other unintended behaviors.
Mitigations (5)
RequirementsUse a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Choose languages with features such as exception handling that force the programmer to anticipate unusual conditions that may generate exceptions. Custom exceptions may need to be developed to handle unusual business-logic conditions. Be careful not to pass sensitive exceptions…
ImplementationCheck the results of all functions that return a value and verify that the value is expected.
Effectiveness: High
ImplementationIf using exception handling, catch and throw specific exceptions instead of overly-general exceptions (CWE-396, CWE-397). Catch and handle exceptions as locally as possible so that exceptions do not propagate too far up the call stack (CWE-705). Avoid unchecked or uncaught exceptions where feasible (CWE-248).
Effectiveness: High
ImplementationEnsure that error messages only contain minimal details that are useful to the intended audience and no one else. The messages need to strike the balance between being too cryptic (which can confuse users) or being too detailed (which may reveal more than intended). The messages should not reveal the methods that were used to determine the error. Attackers can use detailed information to refine or…
ImplementationAssume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range…
Examples (2)
Consider the following code segment:
char buf[10], cp_buf[10]; fgets(buf, 10, stdin); strcpy(cp_buf, buf);
Bad · C
The following code does not check to see if memory allocation succeeded before attempting to use the pointer returned by malloc().
buf = (char*) malloc(req_size); strncpy(buf, xfer, req_size);
Bad · C
CVE IDTitleCVSSSeverityPublished
CVE-2021-43801 Uncaught Exception in mercurius — mercurius 7.5 High2021-12-13
CVE-2021-41135 Authz Module Non-Determinism — cosmos-sdk 6.5 Medium2021-10-20
CVE-2021-31364 Junos OS: SRX Series: The flowd process will crash if log session-close is configured and specific traffic is received — Junos OS 5.9 Medium2021-10-19
CVE-2021-31361 Junos OS: QFX Series and PTX Series: FPC resource usage increases when certain packets are processed which are being VXLAN encapsulated — Junos OS 5.3 Medium2021-10-19
CVE-2021-31351 Junos OS: MX Series: Receipt of specific packet on MS-MPC/MS-MIC causes line card reset — Junos OS 7.5 High2021-10-19
CVE-2021-25481 Samsung SMR 代码问题漏洞 — Samsung Mobile Devices 6.4 Medium2021-10-06
CVE-2021-39162 Incorrect handling of H2 GOAWAY + SETTINGS frames — pomerium 8.6 High2021-09-09
CVE-2021-33605 Unauthorized property update in CheckboxGroup component in Vaadin 12-14 and 15-20 — Vaadin 4.3 Medium2021-08-25
CVE-2021-32780 Incorrect handling of H/2 GOAWAY followed by SETTINGS frames — envoy 8.6 High2021-08-24
CVE-2021-21563 DELL EMC PowerScale 代码问题漏洞 — PowerScale OneFS 6.5 Medium2021-08-02
CVE-2021-0288 Junos OS: MX Series, EX9200 Series: FPC may crash upon receipt of specific MPLS packet affecting Trio-based MPCs — Junos OS 6.5 Medium2021-07-15
CVE-2021-0287 Junos OS and Junos OS Evolved: RPD could crash in SR-ISIS/MPLS environment due to a flap of an ISIS link in the network — Junos OS 6.5 Medium2021-07-15
CVE-2021-0282 Junos OS: RPD crash while processing a specific BGP UPDATE when Multipath or add-path features are enabled — Junos OS 7.5 High2021-07-15
CVE-2021-0281 Junos OS and Junos OS Evolved: Specific packets can trigger rpd crash when BGP Origin Validation is configured with RPKI — Junos OS 5.9 Medium2021-07-15
CVE-2021-32946 Open Design Alliance Drawings SDK 代码问题漏洞 — Drawings SDK 7.8 -2021-06-17
CVE-2021-21439 Possible DoS attack using a special crafted URL in email body — ((OTRS)) Community Edition 6.5 Medium2021-06-14
CVE-2020-36382 OpenVPN 代码问题漏洞 — OpenVPN Access Server 7.5 -2021-06-04
CVE-2021-22747 Triconex Model 3009 MP 代码问题漏洞 — Triconex Model 3009 MP installed on Tricon V11.3.x systems 3.9 -2021-05-26
CVE-2021-22746 Triconex Model 3009 MP 代码问题漏洞 — Triconex Model 3009 MP installed on Tricon V11.3.x systems 3.9 -2021-05-26
CVE-2021-22745 Triconex Model 3009 MP 代码问题漏洞 — Triconex Model 3009 MP installed on Tricon V11.3.x systems 3.9 -2021-05-26
CVE-2021-22744 Triconex Model 3009 MP 代码问题漏洞 — Triconex Model 3009 MP installed on Tricon V11.3.x systems 3.9 -2021-05-26
CVE-2021-22743 Triconex Model 3009 MP 代码问题漏洞 — Triconex TCM 4351B installed on Tricon V11.3.x systems. 3.9 -2021-05-26
CVE-2021-22742 Triconex Model 3009 MP 代码问题漏洞 — Triconex Model 3009 MP installed on Tricon V11.3.x systems 3.9 -2021-05-26
CVE-2021-29607 Incomplete validation in `SparseSparseMinimum` — tensorflow 5.3 Medium2021-05-14
CVE-2021-29531 CHECK-fail in tf.raw_ops.EncodePng — tensorflow 2.5 Low2021-05-14
CVE-2021-29533 CHECK-fail in DrawBoundingBoxes — tensorflow 2.5 Low2021-05-14
CVE-2021-29534 CHECK-fail in SparseConcat — tensorflow 2.5 Low2021-05-14
CVE-2021-29544 CHECK-fail in `QuantizeAndDequantizeV4Grad` — tensorflow 2.5 Low2021-05-14
CVE-2018-25007 Unauthorized client-side property update in UIDL request handler in Vaadin 10 and 11 — Vaadin 2.6 Low2021-04-23
CVE-2021-0239 Junos OS Evolved: Denial of Service due to receipt of specific genuine layer 2 frames. — Junos OS Evolved 6.5 Medium2021-04-22

Vulnerabilities classified as CWE-754 (对因果或异常条件的不恰当检查) represent 272 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.