- What is CWE-130?
- 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.
- What CVEs are caused by CWE-130?
- 101 recorded CVEs are attributed to CWE-130, including CVE-2025-14847, CVE-2026-43125, CVE-2022-2714. 1 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.
- How do you prevent CWE-130?
- When processing structured incoming data containing a size field followed by raw data, ensure that you identify and resolve any inconsistencies between the size field and the actual size of the data.
- How is CWE-130 detected?
- 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.)
- What are the consequences of CWE-130?
- Exploiting CWE-130 can lead to: Read Memory, Modify Memory, Varies by Context.
- Is CWE-130 actively exploited?
- Yes. 1 CWE-130 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 101 recorded CVEs.