CWE-130 - Improper Handling of Length Parameter Inconsistency

  • 摘要:Base
  • 结构:Simple
  • 状态:Incomplete
  • 发布日期:2006-07-19
  • 更新日期:2025-12-11

名称

Improper Handling of Length Parameter Inconsistency

描述

The product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data.

If an attacker can manipulate the length parameter associated with an input such that it is inconsistent with the actual length of the input, this can be leveraged to cause the target application to behave in unexpected, and possibly, malicious ways. One of the possible motives for doing so is to pass in arbitrarily large input to the application. Another possible motivation is the modification of application state by including invalid data for subsequent properties of the application. Such weaknesses commonly lead to attacks such as buffer overflows and execution of arbitrary code.

常见后果

范围:Confidentiality, Integrity

影响:Read Memory, Modify Memory, Varies by Context

相关 CWE