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-2023-49607 Playbook plugin crash via missing interface type assertion — Mattermost 4.3 Medium2023-12-12
CVE-2023-44099 Huawei HarmonyOS 安全漏洞 — HarmonyOS 7.5AIHighAI2023-12-06
CVE-2023-48698 Azure RTOS USBX Remote Code Execution Vulnerability — usbx 6.8 Medium2023-12-05
CVE-2023-39205 Zoom Client 代码问题漏洞 — Zoom Clients 4.3 Medium2023-11-14
CVE-2023-5967 Denial of Service via crashing the Calls Plugin — Mattermost 4.3 Medium2023-11-06
CVE-2023-45812 Improper Check or Handling of Exceptional Conditions in apollo-router — router 7.5 High2023-10-18
CVE-2023-44199 Junos OS: MX Series: In a PTP scenario a prolonged routing protocol churn can trigger an FPC reboot — Junos OS 7.5 High2023-10-12
CVE-2023-44198 Junos OS: SRX Series and MX Series: SIP ALG doesn't drop specifically malformed retransmitted SIP packets — Junos OS 5.8 Medium2023-10-12
CVE-2023-44196 Junos OS Evolved: PTX10003 Series: Packets which are not destined to the router can reach the RE — Junos OS Evolved 6.5 Medium2023-10-12
CVE-2023-41304 Huawei HarmonyOS 代码问题漏洞 — HarmonyOS 5.3 -2023-10-11
CVE-2023-4828 ITM Server Communications Hijack — ITM Server 6.4 Medium2023-09-13
CVE-2023-29198 Context isolation bypass via nested unserializable return value in Electron — electron 6.0 Medium2023-09-06
CVE-2023-37899 feathersjs socket handler allows abusing implicit toString — feathers 7.5 High2023-07-19
CVE-2023-36835 Junos OS: QFX10000 Series: All traffic will be dropped after a specific valid IP packet has been received which needs to be routed over a VXLAN tunnel — Junos OS 7.5 High2023-07-14
CVE-2023-38069 JetBrains IntelliJ IDEA 代码问题漏洞 — IntelliJ IDEA 3.3 Low2023-07-12
CVE-2023-34099 Improper mail validation in Shopware — shopware 5.3 Medium2023-06-27
CVE-2023-34449 ink! vulnerable to incorrect decoding of storage value when using `DelegateCall` — ink 5.3 Medium2023-06-14
CVE-2023-32716 Denial of Service via the 'dump' SPL command — Splunk Enterprise 6.5 Medium2023-06-01
CVE-2023-25620 Schneider Electric Modicon M580 代码问题漏洞 — Modicon M340 CPU (part numbers BMXP34*) 6.5 Medium2023-04-19
CVE-2023-25619 Schneider Electric Modbus Serial Driver 代码问题漏洞 — Modicon M340 CPU (part numbers BMXP34*) 7.5 High2023-04-19
CVE-2023-28974 Junos OS: MX Series: In a BBE scenario upon receipt of specific malformed packets from subscribers the process bbe-smgd will crash — Junos OS 7.4 High2023-04-17
CVE-2023-28976 Junos OS: MX Series: If a specific traffic rate goes above the DDoS threshold it will lead to an FPC crash — Junos OS 7.5 High2023-04-17
CVE-2023-28979 Junos OS: In a 6PE scenario upon receipt of a specific IPv6 packet an integrity check fails — Junos OS 4.7 Medium2023-04-17
CVE-2022-3192 Improper Check for Unusual or Exceptional Conditions — AC500 V2 5.3 Medium2023-03-31
CVE-2023-23626 Denial of service when feeding malformed size arguments in go-bitfield — go-bitfield 5.9 Medium2023-02-09
CVE-2023-23931 Cipher.update_into can corrupt memory in pyca cryptography — cryptography 4.8 Medium2023-02-07
CVE-2022-45854 Zyxel NWA110AX 代码问题漏洞 — NWA110AX firmware 4.3 Medium2023-02-07
CVE-2022-45788 Schneider Electric EcoStruxure Control Expert 代码问题漏洞 — EcoStruxure Control Expert 7.5 High2023-01-30
CVE-2022-43393 Zyxel GS1920 代码问题漏洞 — GS1920-24v2 firmware 8.2 High2023-01-11
CVE-2022-37392 Apache Traffic Server: Improperly reading the client requests — Apache Traffic Server 8.2 -2022-12-19

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