Skip to content
OpenAdvisories

Weakness (CWE)

CWE-197: Numeric Truncation Error

Base Incomplete

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

How to prevent it (1 mitigation)
  1. Implementation

    Ensure that no casts, implicit or explicit, take place that move from a larger size primitive or a smaller size primitive.

Source: MITRE CWE-197

6 results · Clear filters · Feed

  • Low 1.7

    Integer truncation vulnerability in QTextCodec conversion functions impacts Qt Framework

    An integer truncation vulnerability in the QTextCodec conversion functions of the Qt 5 Core Compatibility APIs module impacts the Qt Framework. An application using the affected functionality could crash.

  • Low 3.6
    CVE-2026-116012 Public exploit

    Ghidra before 12.2 Integer Truncation in PackedDecode::skipAttribute Decompiler Parser

    Ghidra before 12.2 contains a numeric truncation vulnerability in PackedDecode::skipAttribute and skipAttributeRemaining in marshal.cc that stores 64-bit string lengths in 32-bit variables. Attackers can supply a crafted packed stream, such as a malicious .sl…

  • Low 3.7

    Suricata sip: large SIP message bodies can evade detection with frame keyword

    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…

  • Low 2.4

    Numeric Truncation Error in nnn

    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…

  • Low 2.0

    Capstone WASM `br_table` instruction-size truncation can cause no-progress disassembly and parser desynchronization

    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` inst…

  • Low 2.9

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