CWE-130: Improper Handling of Length Parameter Inconsistency

low-risk

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.

Abstraction: Base

Common Consequences

Confidentiality Read Memory

Detection Methods

Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Real-World Examples (10)

CVE CVSS EPSS KEV
CVE-2025-14847 7.5 77.5% Y
CVE-2024-39614 7.5 6.8%
CVE-2019-3862 7.3 6.6%
CVE-2023-40167 5.3 4.8%
CVE-2022-24666 7.5 2.6%
CVE-2024-37988 8.0 1.9%
CVE-2024-37989 8.0 1.9%
CVE-2024-38010 8.0 1.9%
CVE-2021-35516 7.5 1.4%
CVE-2024-38011 8.0 1.4%
0
/ 100
low-risk
Active Threat 0/50 · Minimal
Exploit Availability 0/50 · Minimal