Common Weakness Enumeration

    CWE Definition / CWE-195

    CWE-195: Signed to Unsigned Conversion Error

    The product uses a signed primitive and performs a cast to an unsigned primitive, which can produce an unexpected value if the value of the signed primitive can not be represented using an unsigned primitive.

    Published:19 Jul 2006
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-681: Incorrect Conversion between Numeric Types

    CWE-681: Incorrect Conversion between Numeric Types

    CWE-681: Incorrect Conversion between Numeric Types

    CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer