CyberSecBulletin

Improper Handling of Length Parameter Inconsistency

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.

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.

We track 62 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 8.1. 1 has been exploited in real attacks.

How this weakness is prevented

  • Implementation: 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.
  • Implementation: Do not let the user control the size of the buffer.
  • Implementation: Validate that the length of the user-supplied data is consistent with the buffer size.

Latest Improper Handling of Length Parameter Inconsistency vulnerabilities

  • 7.8 High severity

    NVIDIA CUDA Toolkit: Improper Handling of Length Parameter Inconsistency

    CVE-2025-23247NVIDIA

    NVIDIA CUDA Toolkit for all platforms contains a vulnerability in the cuobjdump binary, where a failure to check the length of a buffer could allow a user to cause the tool to crash or execute arbitrary code by passing in a malformed ELF file. A successful exp

  • 7.5 High severity

    NamelessMC is a free, easy to use & powerful website software for Minecraft servers.

    CVE-2025-29784NamelessMC

    NamelessMC is a free, easy to use & powerful website software for Minecraft servers. In version 2.1.4 and prior, the s parameter in GET requests for forum search functionality lacks length validation, allowing attackers to submit excessively long search querie

  • 7.5 High severity

    Junos OS: Improper Handling of Length Parameter Inconsistency

    CVE-2025-30659Juniper Networks

    An Improper Handling of Length Parameter Inconsistency vulnerability in the Packet Forwarding Engine (PFE) of Juniper Networks Junos OS on SRX Series allows an unauthenticated, network-based attacker to cause a Denial-of-Service (DoS). When a device configured

  • 7.5 High severity

    rpgp: Improper Handling of Length Parameter Inconsistency

    CVE-2024-53856Rpgp

    rPGP is a pure Rust implementation of OpenPGP. Prior to 0.14.1, rPGP allows an attacker to trigger rpgp crashes by providing crafted data. This vulnerability is fixed in 0.14.1.

  • 7.5 High severity

    django: Improper Validation of Specified Quantity in Input

    CVE-2024-41991Django

    An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. The urlize and urlizetrunc template filters, and the AdminURLFieldWidget widget, are subject to a potential denial-of-service attack via certain inputs with a very large number of Unicod

  • 7.5 High severity

    django: Improper Handling of Length Parameter Inconsistency

    CVE-2024-41990DjangoEPSS 1.26%

    An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. The urlize() and urlizetrunc() template filters are subject to a potential denial-of-service attack via very large inputs with a specific sequence of characters.

  • 7.5 High severity

    django: Improper Handling of Length Parameter Inconsistency

    CVE-2024-39614DjangoEPSS 28.6%

    An issue was discovered in Django 5.0 before 5.0.7 and 4.2 before 4.2.14. get_supported_language_variant() was subject to a potential denial-of-service attack when used with very long strings containing specific characters.

  • 7.5 High severity

    django: Improper Handling of Length Parameter Inconsistency

    CVE-2024-38875DjangoEPSS 1.19%

    An issue was discovered in Django 4.2 before 4.2.14 and 5.0 before 5.0.7. urlize and urlizetrunc were subject to a potential denial of service attack via certain inputs with a very large number of brackets.

  • 8.2 High severity

    oqs-provider: Buffer Copy without Checking Size of Input

    CVE-2024-37305Open-quantum-safe

    oqs-provider is a provider for the OpenSSL 3 cryptography library that adds support for post-quantum cryptography in TLS, X.509, and S/MIME using post-quantum algorithms from liboqs. Flaws have been identified in the way oqs-provider handles lengths decoded wi

  • 7.8 High severity

    CurieM-WFG9B: Out-of-bounds Write

    CVE-2023-52547Huawei

    Huawei Matebook D16(Model: CREM-WXX9, BIOS: v2.26. Memory Corruption in SMI Handler of HddPassword SMM Module. This can be leveraged by a malicious OS attacker to corrupt data structures stored at the beginning of SMRAM and can potentially lead to code executi

  • 7.4 High severity

    Experion Server: Improper Handling of Length Parameter Inconsistency

    CVE-2023-5393Honeywell

    Server receiving a malformed message that causes a disconnect to a hostname may causing a stack overflow resulting in possible remote code execution. Honeywell recommends updating to the most recent version of the product. See Honeywell Security Notification f

  • 7.5 High severity

    ntpd-rs: Improper Handling of Length Parameter Inconsistency

    CVE-2023-33192Pendulum-project

    ntpd-rs is an NTP implementation written in Rust. ntpd-rs does not validate the length of NTS cookies in received NTP packets to the server. An attacker can crash the server by sending a specially crafted NTP packet containing a cookie shorter than what the se

  • 7.8 High severity

    libslic3r: Out-of-bounds Write

    CVE-2022-36788Slic3r

    A heap-based buffer overflow vulnerability exists in the TriangleMesh clone functionality of Slic3r libslic3r 1.3.0 and Master Commit b1a5500. A specially-crafted STL file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger

  • 7.5 High severity

    Junos OS: Improper Handling of Length Parameter Inconsistency

    CVE-2023-28964Juniper Networks

    An Improper Handling of Length Parameter Inconsistency vulnerability in the routing protocol daemon (rpd) of Juniper Networks Junos OS and Junos OS Evolved allows a network based, unauthenticated attacker to cause an RPD crash leading to a Denial of Service (D

  • 8.8 High severity

    Cisco Analog Telephone Adaptor (ATA) Software: Improper Validation of Specified Quantity in Input

    CVE-2022-20690Cisco

    Multiple vulnerabilities in the Cisco Discovery Protocol functionality of Cisco ATA 190 Series Analog Telephone Adapter firmware could allow an unauthenticated, adjacent attacker to cause Cisco Discovery Protocol memory corruption on an affected device. These

  • 8.8 High severity

    Cisco Analog Telephone Adaptor (ATA) Software: Improper Validation of Specified Quantity in Input

    CVE-2022-20689Cisco

    Multiple vulnerabilities in the Cisco Discovery Protocol functionality of Cisco ATA 190 Series Analog Telephone Adapter firmware could allow an unauthenticated, adjacent attacker to cause Cisco Discovery Protocol memory corruption on an affected device. These

  • 7.5 High severity

    HarmonyOS: Improper Handling of Length Parameter Inconsistency

    CVE-2022-41586Huawei

    The communication framework module has a vulnerability of not truncating data properly.Successful exploitation of this vulnerability may affect data confidentiality.

  • 8.6 High severity

    Cisco IOS XE Software: Improper Handling of Length Parameter Inconsistency

    CVE-2022-20870CiscoEPSS 1%

    A vulnerability in the egress MPLS packet processing function of Cisco IOS XE Software for Cisco Catalyst 3650, Catalyst 3850, and Catalyst 9000 Family Switches could allow an unauthenticated, remote attacker to cause an affected device to reload unexpectedly,

  • 8.8 High severity

    erudika/scoold: Improper Handling of Length Parameter Inconsistency

    CVE-2022-1543ErudikaEPSS 1.11%

    Improper handling of Length parameter in GitHub repository erudika/scoold prior to 1.49.4. When the text size is large enough the service results in a momentary outage in a production environment. That can lead to memory corruption on the server.

  • 7.5 High severity

    Update Server: Improper Handling of Length Parameter Inconsistency

    CVE-2022-0677BitdefenderEPSS 1.25%

    Improper Handling of Length Parameter Inconsistency vulnerability in the Update Server component of Bitdefender Endpoint Security Tools (in relay role), GravityZone (in Update Server role) allows an attacker to cause a Denial-of-Service. This issue affects: Bi

  • 7.5 High severity

    SwiftNIO HTTP2: Improper Handling of Length Parameter Inconsistency

    CVE-2022-0618Swift ProjectEPSS 1.3%

    A program using swift-nio-http2 is vulnerable to a denial of service attack, caused by a network peer sending a specially crafted HTTP/2 frame. This vulnerability is caused by a logical error when parsing a HTTP/2 HEADERS or HTTP/2 PUSH_PROMISE frame where the

  • 7.5 High severity

    SwiftNIO HTTP2: Improper Handling of Length Parameter Inconsistency

    CVE-2022-24666Swift ProjectEPSS 1.35%

    A program using swift-nio-http2 is vulnerable to a denial of service attack, caused by a network peer sending a specially crafted HTTP/2 frame. This attack affects all swift-nio-http2 versions from 1.0.0 to 1.19.1. This vulnerability is caused by a logical err