VYPR

CWE-197

Numeric Truncation Error

BaseIncompleteLikelihood: Low

Description

Truncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion.

When a primitive is cast to a smaller primitive, the high order bits of the large value are lost in the conversion, potentially resulting in an unexpected value that is not equal to the original value. This value may be required as an index into a buffer, a loop iterator, or simply necessary state data. In any case, the value cannot be trusted and the system will be in an undefined state. While this method may be employed viably to isolate the low bits of a value, this usage is rare, and truncation usually implies that an implementation error has occurred.

Hierarchy (View 1000)

Parents

Children

none

CVEs mapped to this weakness (79)

page 4 of 4
  • CVE-2024-21377MedFeb 13, 2024
    risk 0.36cvss 5.5epss 0.01

    Windows DNS Information Disclosure Vulnerability

  • CVE-2022-34680MedDec 30, 2022
    risk 0.36cvss 5.5epss 0.00

    NVIDIA GPU Display Driver for Linux contains a vulnerability in the kernel mode layer handler, where an integer truncation can lead to an out-of-bounds read, which may lead to denial of service.

  • CVE-2026-6039MedJun 15, 2026
    risk 0.35cvss —epss 0.00

    LibreOffice can import drawings in the DXF format used by CAD software. A heap buffer overflow existed when importing a DXF polyline. The point count taken from the file was truncated to a 16-bit value when the point buffer was sized, while the full count was used to fill it, so…

  • CVE-2026-32240MedMar 12, 2026
    risk 0.35cvss 6.5epss 0.00

    Cap'n Proto is a data interchange format and capability-based RPC system. Prior to 1.4.0, when using Transfer-Encoding: chunked, if a chunk's size parsed to a value of 2^64 or larger, it would be truncated to a 64-bit integer. In theory, this bug could enable HTTP…

  • CVE-2026-77014MedAug 20, 2026
    risk 0.34cvss 5.3epss 0.00

    A flaw was found in libsoup's SoupServer HTTP Range header processing. The sort_ranges() comparator in soup-message-headers.c truncates a 64-bit subtraction result to 32-bit int, flipping the sign for range offsets differing by more than INT_MAX. This causes silent omission of…

  • CVE-2026-86315MedSep 7, 2026
    risk 0.33cvss 6.2epss 0.00

    An out-of-bounds write caused by numeric truncation Samsung Open Source Escargot on Linux x86-64 allows an attacker who can supply JavaScript for execution to corrupt native memory and crash the host process via a crafted class definition whose instance initialization entry…

  • CVE-2026-76151MedSep 16, 2026
    risk 0.30cvss —epss 0.01

    Out-of-bounds read (buffer over-read) in the HTTP Cache-Control response header parsing in the QtNetwork module in Qt Group Qt 6.0.0 through 6.8.8, and 6.9.0 through 6.11.1, allows remote attackers to cause a denial of service (application crash) via an excessively large…

  • CVE-2025-10543MedDec 2, 2025
    risk 0.27cvss 5.3epss 0.00

    In Eclipse Paho Go MQTT v3.1 library (paho.mqtt.golang) versions <=1.5.0 UTF-8 encoded strings, passed into the library, may be incorrectly encoded if their length exceeds 65535 bytes. This may lead to unexpected content in packets sent to the server (for example, part of an…

  • CVE-2026-42371MedApr 27, 2026
    risk 0.26cvss 5.1epss 0.00

    uriparser before 1.0.1 has numeric truncation in text range comparison, if an application accepts URIs with a length in gigabytes.

  • CVE-2026-80213MedAug 27, 2026
    risk 0.19cvss 4.0epss 0.00

    An issue was discovered in the resolv gem before 0.7.2 for Ruby. Resolv::DNS::MessageEncoder wrote a DNS label's length into a single octet without checking its range. A label longer than 255 octets had its length stored modulo 256 but the label data was written unchanged, and…

  • CVE-2026-63449LowSep 18, 2026
    risk 0.17cvss 3.7epss 0.00

    Suricata is a network Intrusion Detection System, Intrusion Prevention System and Network Security Monitoring engine. From 8.0.0 until 8.0.6, the SIP parser in rust/src/sip/parser.rs stores request and response body lengths in 16-bit fields. A SIP body larger than 65,536 bytes…

  • CVE-2026-65610LowAug 19, 2026
    risk 0.16cvss —epss 0.00

    nnn stores homelen variable as uchar_t, which can only represent values in the range 0-255. An attacker who can influence the victim's execution environment can provide an arbitrary HOME path with length that is truncated to 0. The expression (homelen - 1) is promoted to…

  • CVE-2026-49263LowAug 14, 2026
    risk 0.13cvss —epss 0.00

    Capstone is a disassembly framework. Prior to version 6.0.0-Alpha9, Capstone's WebAssembly backend accepts attacker-controlled raw WASM instruction bytes through the public `cs_disasm()` and `cs_disasm_iter()` APIs. For a large but well-formed `br_table` instruction, the WASM…

  • CVE-2026-44927LowMay 8, 2026
    risk 0.12cvss 2.9epss 0.00

    In uriparser before 1.0.2, there is pointer difference truncation to int in various places.

  • CVE-2026-56650HigJul 14, 2026
    risk 0.00cvss 7.8epss 0.00

    Heap-based buffer overflow in Windows Network File System allows an authorized attacker to elevate privileges locally.

  • CVE-2026-55142MedJul 14, 2026
    risk 0.00cvss 5.5epss 0.01

    Numeric truncation error in Microsoft Office Word allows an unauthorized attacker to disclose information locally.

  • CVE-2026-50357HigJul 14, 2026
    risk 0.00cvss 7.8epss 0.00

    Numeric truncation error in Windows Resilient File System (ReFS) allows an authorized attacker to execute code locally.

  • CVE-2026-50332HigJul 14, 2026
    risk 0.00cvss 7.8epss 0.00

    Heap-based buffer overflow in Windows Kernel allows an authorized attacker to elevate privileges locally.

  • CVE-2026-49792HigJul 14, 2026
    risk 0.00cvss 7.8epss 0.00

    Numeric truncation error in Windows Resilient File System (ReFS) allows an authorized attacker to execute code locally.