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

Incorrect Bitwise Shift of Integer

An integer value is specified to be shifted by a negative amount or an amount greater than or equal to the number of bits contained in the value.

Part of: CWE-682 · Incorrect Calculation

5CVEs of this type in the archive
0critical (CVSS ≥ 9)
3high severity (7–8.9)
Sep 24, 2026latest published

What it is

An integer value is specified to be shifted by a negative amount or an amount greater than or equal to the number of bits contained in the value.

Specifying a value to be shifted by a negative amount is undefined in various languages. Various computer architectures implement this action in different ways. The compilers and interpreters when generating code to accomplish a shift generally do not do a check for this issue. Specifying an over-shift - a shift greater than or equal to the number of bits contained in a value to be shifted - produces a result that varies by architecture and compiler. In some languages, this action is undefined.

Impact on systems

ScopeImpact
Integrity DoS: Crash, Exit, or Restart
Other Undefined Behavior, Unexpected State, Alter Execution Logic

How to prevent it

Implementation Implicitly or explicitly add checks and mitigation for negative or over-shift values.

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

CWE-1335 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20171
20241
20263

All CWE-1335 CVEs

5 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.