1. CVE archive
  2. Vulnerability types
  3. CWE-681
CWE-681 · #169 most frequent type in the archive

Incorrect Conversion between Numeric Types

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.

Part of: CWE-704 · Incorrect Type Conversion or Cast

122CVEs of this type in the archive
10critical (CVSS ≥ 9)
66high severity (7–8.9)
Dec 1, 2026latest published

What it is

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.

Impact on systems

ScopeImpact
Other, Integrity Unexpected State, Quality Degradation
The 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.

How to prevent it

Implementation Avoid making conversion between numeric types. Always check for the allowed ranges.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-681 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20072
20082
20091
20101
20161
20172
20183
20198
20205
202121
202212
202310
20248
20252
202644

All CWE-681 CVEs

122 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.