Description
The product uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value if the value of the unsigned primitive can not be represented using a signed primitive.
Extended Description
Although less frequent an issue than signed-to-unsigned conversion, unsigned-to-signed conversion can be the perfect precursor to dangerous buffer underwrite conditions that allow attackers to move down the stack where they otherwise might not have access in a normal buffer overflow condition. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
CVE vulnerabilities with CWE-196 (7)
9.8
CVSS
CRITICAL
CVE-2026-14454
pub. 2026-07-08
9.1
CVSS
CRITICAL
CVE-2022-36025
pub. 2022-09-24
7.8
CVSS
HIGH
CVE-2020-13545
pub. 2021-01-06
7.5
CVSS
HIGH
CVE-2020-7067
pub. 2020-04-27
7.2
CVSS
HIGH
CVE-2026-34155
pub. 2026-03-31
6.7
CVSS
MEDIUM
CVE-2023-0185
pub. 2023-04-01
5.1
CVSS
MEDIUM
CVE-2026-58317
pub. 2026-07-17