Security Resilience

CWE · MITRE source

CWE-130Improper Handling of Length Parameter Inconsistency

Abstraction: Base · CVEs in our corpus: 132

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.

Last updated: 15 October 2026 07:26 UTC

Control responseHuman-reviewed

Answering this weakness across the control lifecycle, from our framework cross-walks.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • PR.PS-06
  • SA-11 Developer Testing and Evaluation
  • SI-10 Information Input Validation
Detect
Catch it (CSF Detect / Respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V3.5.5
  • V4.2.1
  • V4.2.2

NIST 800-53 r5 controls PROPOSED for this weakness (0)AI-assisted

These are model PROPOSALS, not graded mappings. They come from controls_to_cwe_proposals, which carries no grade field at all; across the CWE pages 1,540 of 1,722 such associations (89%) have never been graded by anything. The heading said “address” until 2026-09-29, which asserted a relationship the data does not carry. Graded cross-walks are on the framework map, not here.

Control Title Family Why it addresses this CWE
No NIST controls proposed yet.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2025-14847 KEV 8.57.50.83222025-12-19
CVE-2026-1093907.69.80.01612026-10-12
CVE-2022-2714 7.59.80.00872022-09-06
CVE-2024-39614 7.37.50.28642024-07-10
CVE-2026-43125 7.39.80.00432026-05-06
CVE-2026-42216 7.09.10.00712026-05-07
CVE-2021-36090 6.97.50.12952021-07-13
CVE-2021-35516 6.87.50.12362021-07-13
CVE-2021-35517 6.87.50.10612021-07-13
CVE-2022-1543 6.88.80.01112022-04-29
CVE-2026-228616.78.80.00712026-01-13
CVE-2021-20588 6.67.50.06882021-02-19
CVE-2026-58096 6.68.80.00602026-08-26
CVE-2019-3862 6.57.30.07902019-03-21
CVE-2026-220466.58.80.00342026-01-07
CVE-2026-220476.58.80.00382026-01-07
CVE-2026-222556.58.80.00422026-01-08
CVE-2021-20610 6.47.50.03272021-12-01
CVE-2022-20870 6.48.60.00992022-10-10
CVE-2026-5367 6.48.60.00882026-04-24
CVE-2024-38011 6.38.00.01262024-07-09
CVE-2021-43666 6.27.50.02072022-03-24
CVE-2022-3272 6.27.50.01772022-09-26
CVE-2022-36788 6.28.10.00622023-04-20
CVE-2024-37305 6.28.20.00452024-06-17