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

1 result · Clear filters · Feed

  • 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…