CWE•Base•Draft•20 recent CVEs
CWE-681Incorrect Conversion between Numeric Types
Description
When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.
Common consequences
- Other,Integrity→Unexpected State,Quality DegradationThe program could wind up using the wrong number and generate incorrect results. If the number is used to allocate resources or make a security decision, then this could introduce a vulnerability.
Potential mitigations
- ImplementationAvoid making conversion between numeric types. Always check for the allowed ranges.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-1280844.82026-11-13CVE-2026-961527.82026-11-10CVE-2026-1233818.82026-11-10CVE-2026-1100516.52026-11-10CVE-2026-1167859.12026-11-05CVE-2026-689907.82026-11-05CVE-2026-1193405.52026-10-30CVE-2026-1187692026-10-29CVE-2026-1146546.52026-10-22CVE-2026-1141184.82026-10-21CVE-2026-126705.32026-10-19CVE-2026-838727.82026-10-13CVE-2026-1064323.62026-10-08CVE-2026-1072246.52026-10-07CVE-2026-475396.72026-09-30CVE-2026-475087.82026-09-30CVE-2026-981437.82026-09-25CVE-2026-980955.52026-09-25CVE-2026-980495.52026-09-25CVE-2026-883875.52026-09-24