CWE-196: Unsigned to Signed Conversion Error, published in 2022
Filter
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.
What the weakness is: CWE-196 at MITRE. All weaknesses
Related attack patterns (CAPEC): 1
- CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High
The attack patterns MITRE's CAPEC relates to CWE-196, as MITRE names them. Credits.
Ask an AI about CWE-196
Show the prompt
Explain CWE-196: Unsigned to Signed Conversion Error and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/196.html and https://cve.bz/cve/cwe/196?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 9.1CVE-2022-36025linuxfoundation besuEPSS 1.3%
Besu is a Java-based Ethereum client. In versions newer than 22.1.3 and prior to 22.7.1, Besu is subject to an Incorrect Conversion between Numeric Types. An error in 32 bit signed and unsigned types in the calculation of available gas in …