- What is CWE-192?
- Integer coercion refers to a set of flaws pertaining to the type casting, extension, or truncation of primitive data types.
- What CVEs are caused by CWE-192?
- 5 recorded CVEs are attributed to CWE-192, including CVE-2022-2639, CVE-2014-125011, CVE-2021-32996.
- How do you prevent CWE-192?
- A language which throws exceptions on ambiguous data casts might be chosen.
- How is CWE-192 detected?
- Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
- What are the consequences of CWE-192?
- Exploiting CWE-192 can lead to: DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory), DoS: Crash, Exit, or Restart, Execute Unauthorized Code or Commands, Other.
- Is CWE-192 actively exploited?
- 5 recorded CVEs are caused by CWE-192; none are currently in CISA's KEV catalog of actively exploited flaws.