CWE-544: Missing Standardized Error Handling Mechanism

Base Draft Simple

CWE版本: 4.18

更新日期: 2025-09-09

弱点描述

The product does not use a standardized method for handling errors throughout the code, which might introduce inconsistent error handling and resultant weaknesses.

扩展描述

If the product handles error messages individually, on a one-by-one basis, this is likely to result in inconsistent error handling. The causes of errors may be lost. Also, detailed information about the causes of an error may be unintentionally returned to the user.

常见后果

影响范围: Integrity Other

技术影响: Quality Degradation Unexpected State Varies by Context

潜在缓解措施

阶段: Architecture and Design

描述: define a strategy for handling errors of different severities, such as fatal errors versus basic log events. Use or create built-in language features, or an external package, that provides an easy-to-use API and define coding standards for the detection and handling of errors.

引入模式

阶段 说明
Architecture and Design OMISSION: This weakness is caused by missing a security tactic during the architecture and design phase.

分类映射

分类名称 条目ID 条目名称 映射适配度
CERT C Secure Coding ERR00-C Adopt and implement a consistent and comprehensive error-handling policy -
关键信息

CWE ID: CWE-544

抽象级别: Base

结构: Simple

状态: Draft

相关弱点