CyberSecBulletin

Integer Overflow or Wraparound

CWE-190

The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.

We track 963 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 8.2. 22 have been exploited in real attacks.

How this weakness is prevented

  • Requirements: Ensure that all protocols are strictly defined, such that all out-of-bounds behavior can be identified simply, and require strict conformance to the protocol.
  • Requirements: Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. If possible, choose a language or compiler that performs automatic bounds checking.
  • Architecture and Design: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Use libraries or frameworks that make it easier to handle numbers without unexpected consequences. Examples include safe integer handling packages such as SafeInt (C++) or IntegerLib (C or C++).
  • Implementation: Perform input validation on any numeric input by ensuring that it is within the expected range. Enforce that the input meets both the minimum and maximum requirements for the expected range. Use unsigned integers where possible. This makes it easier to perform validation for integer overflows. When signed integers are required, ensure that the range check includes minimum values as well as maximum values.
  • Implementation: Understand the programming language's underlying representation and how it interacts with numeric calculation (CWE-681). Pay close attention to byte size discrepancies, precision, signed/unsigned distinctions, truncation, conversion and casting between types, not-a-number calculations, and how the language handles numbers that are too large or too small for its underlying representation. Also be careful to account for 32-bit, 64-bit, and other potential differences that may affect the numeric representation.

Latest Integer Overflow or Wraparound vulnerabilities

  • 7.8 High severity

    Linux kernel: Integer Overflow or Wraparound

    CVE-2024-23307Linux

    Integer Overflow or Wraparound vulnerability in Linux Linux kernel kernel on Linux, x86, ARM (md, raid, raid5 modules) allows Forced Integer Overflow.

  • 9.8 Critical severity

    FreeRDP: Integer Overflow or Wraparound

    CVE-2024-22211FreeRDPEPSS 1.08%

    FreeRDP is a set of free and open source remote desktop protocol library and clients. In affected versions an integer overflow in `freerdp_bitmap_planar_context_reset` leads to heap-buffer overflow. This affects FreeRDP based clients. FreeRDP based server impl

  • 7.8 High severity

    DGX A100: Integer Overflow or Wraparound

    CVE-2023-31034NVIDIA

    NVIDIA DGX A100 SBIOS contains a vulnerability where a local attacker can cause input validation checks to be bypassed by causing an integer overflow. A successful exploit of this vulnerability may lead to denial of service, information disclosure, and data ta

  • 8.1 High severity

    redis: Integer Overflow or Wraparound

    CVE-2023-41056RedisEPSS 2.56%

    Redis is an in-memory database that persists on disk. Redis incorrectly handles resizing of memory buffers which can result in integer overflow that leads to heap overflow and potential remote code execution. This issue has been patched in version 7.0.15 and 7

  • 8.8 High severity

    Freeimage: Integer Overflow or Wraparound

    CVE-2023-47994Freeimage Project

    An integer overflow vulnerability in LoadPixelDataRLE4 function in PluginBMP.cpp in Freeimage 3.18.0 allows attackers to obtain sensitive information, cause a denial of service and/or run arbitrary code.

  • 8.8 High severity

    Freeimage: Integer Overflow or Wraparound

    CVE-2023-47992Freeimage Project

    An integer overflow vulnerability in FreeImageIO.cpp::_MemoryReadProc in FreeImage 3.18.0 allows attackers to obtain sensitive information, cause a denial-of-service attacks and/or run arbitrary code.

  • 9.8 Critical severity

    azure-uamqp-c: Integer Overflow or Wraparound

    CVE-2024-21646AzureEPSS 5.11%

    Azure uAMQP is a general purpose C library for AMQP 1.0. The UAMQP library is used by several clients to implement AMQP protocol communication. When clients using this library receive a crafted binary type data, an integer overflow or wraparound or memory safe

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-39317GTKWave

    Multiple integer overflow vulnerabilities exist in the LXT2 num_dict_entries functionality of GTKWave 3.3.115. A specially crafted .lxt2 file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities.Th

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-39316GTKWave

    Multiple integer overflow vulnerabilities exist in the LXT2 num_dict_entries functionality of GTKWave 3.3.115. A specially crafted .lxt2 file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities.Th

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-39275GTKWave

    Multiple integer overflow vulnerabilities exist in the LXT2 facgeometry parsing functionality of GTKWave 3.3.115. A specially crafted .lxt2 file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-39274GTKWave

    Multiple integer overflow vulnerabilities exist in the LXT2 facgeometry parsing functionality of GTKWave 3.3.115. A specially crafted .lxt2 file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-39273GTKWave

    Multiple integer overflow vulnerabilities exist in the LXT2 facgeometry parsing functionality of GTKWave 3.3.115. A specially crafted .lxt2 file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-39272GTKWave

    Multiple integer overflow vulnerabilities exist in the LXT2 facgeometry parsing functionality of GTKWave 3.3.115. A specially crafted .lxt2 file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-39271GTKWave

    Multiple integer overflow vulnerabilities exist in the LXT2 facgeometry parsing functionality of GTKWave 3.3.115. A specially crafted .lxt2 file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-39270GTKWave

    Multiple integer overflow vulnerabilities exist in the LXT2 facgeometry parsing functionality of GTKWave 3.3.115. A specially crafted .lxt2 file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-38653GTKWave

    Multiple integer overflow vulnerabilities exist in the VZT vzt_rd_block_vch_decode dict parsing functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to memory corruption. A victim would need to open a malicious file to trigger these vulnera

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-38652GTKWave

    Multiple integer overflow vulnerabilities exist in the VZT vzt_rd_block_vch_decode dict parsing functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to memory corruption. A victim would need to open a malicious file to trigger these vulnera

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-38651GTKWave

    Multiple integer overflow vulnerabilities exist in the VZT vzt_rd_block_vch_decode times parsing functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to memory corruption. A victim would need to open a malicious file to trigger these vulner

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-38650GTKWave

    Multiple integer overflow vulnerabilities exist in the VZT vzt_rd_block_vch_decode times parsing functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to memory corruption. A victim would need to open a malicious file to trigger these vulner

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-38623GTKWave

    Multiple integer overflow vulnerabilities exist in the VZT facgeometry parsing functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities.T

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-38622GTKWave

    Multiple integer overflow vulnerabilities exist in the VZT facgeometry parsing functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities.T

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-38621GTKWave

    Multiple integer overflow vulnerabilities exist in the VZT facgeometry parsing functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities.T

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-38620GTKWave

    Multiple integer overflow vulnerabilities exist in the VZT facgeometry parsing functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities.T

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-38619GTKWave

    Multiple integer overflow vulnerabilities exist in the VZT facgeometry parsing functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities.T

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-38618GTKWave

    Multiple integer overflow vulnerabilities exist in the VZT facgeometry parsing functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger these vulnerabilities.T

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-36916GTKWave

    Multiple integer overflow vulnerabilities exist in the FST fstReaderIterBlocks2 chain_table allocation functionality of GTKWave 3.3.115. A specially crafted .fst file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-36915GTKWave

    Multiple integer overflow vulnerabilities exist in the FST fstReaderIterBlocks2 chain_table allocation functionality of GTKWave 3.3.115. A specially crafted .fst file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-36864GTKWave

    An integer overflow vulnerability exists in the fstReaderIterBlocks2 temp_signal_value_buf allocation functionality of GTKWave 3.3.115. A specially crafted .fst file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-35992GTKWave

    An integer overflow vulnerability exists in the FST fstReaderIterBlocks2 vesc allocation functionality of GTKWave 3.3.115, when compiled as a 32-bit binary. A specially crafted .fst file can lead to memory corruption. A victim would need to open a malicious fi

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-35989GTKWave

    An integer overflow vulnerability exists in the LXT2 zlib block allocation functionality of GTKWave 3.3.115. A specially crafted .lxt2 file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger this vulnerability.

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-35128GTKWave

    An integer overflow vulnerability exists in the fstReaderIterBlocks2 time_table tsec_nitems functionality of GTKWave 3.3.115. A specially crafted .fst file can lead to memory corruption. A victim would need to open a malicious file to trigger this vulnerabilit

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-35057GTKWave

    An integer overflow vulnerability exists in the LXT2 lxt2_rd_trace value elements allocation functionality of GTKWave 3.3.115. A specially crafted .lxt2 file can lead to memory corruption. A victim would need to open a malicious file to trigger this vulnerabil

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-35004GTKWave

    An integer overflow vulnerability exists in the VZT longest_len value allocation functionality of GTKWave 3.3.115. A specially crafted .vzt file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger this vulnerability.

  • 7.8 High severity

    GTKWave: Integer Overflow or Wraparound

    CVE-2023-32650GTKWave

    An integer overflow vulnerability exists in the FST_BL_GEOM parsing maxhandle functionality of GTKWave 3.3.115, when compiled as a 32-bit binary. A specially crafted .fst file can lead to memory corruption. A victim would need to open a malicious file to trigg

  • 9.8 Critical severity

    Cmark-gfm: Integer Overflow or Wraparound

    CVE-2024-22051GitHubEPSS 1.45%

    CommonMarker versions prior to 0.23.4 are at risk of an integer overflow vulnerability. This vulnerability can result in possibly unauthenticated remote attackers to cause heap memory corruption, potentially leading to an information leak or remote code execut

  • 9.8 Critical severity

    Debian Linux: Integer Overflow or Wraparound

    CVE-2023-51714Debian

    An issue was discovered in the HTTP2 implementation in Qt before 5.15.17, 6.x before 6.2.11, 6.3.x through 6.5.x before 6.5.4, and 6.6.x before 6.6.2. network/access/http2/hpacktable.cpp has an incorrect HPack integer overflow check.

  • 7.5 High severity

    Matrixssl: Integer Overflow or Wraparound

    CVE-2023-24609Matrixssl

    Matrix SSL 4.x through 4.6.0 and Rambus TLS Toolkit have a length-subtraction integer overflow for Client Hello Pre-Shared Key extension parsing in the TLS 1.3 server. An attacked device calculates an SHA-2 hash over at least 65 KB (in RAM). With a large numbe

  • 8.8 High severity

    Apache Guacamole: Integer Overflow or Wraparound

    CVE-2023-43826Apache

    Apache Guacamole 1.5.3 and older do not consistently ensure that values received from a VNC server will not result in integer overflow. If a user connects to a malicious or compromised VNC server, specially-crafted data could result in memory corruption, possi

  • 9.8 Critical severity

    Plutosvg: Integer Overflow or Wraparound

    CVE-2023-44709Sammycage

    PlutoSVG commit 336c02997277a1888e6ccbbbe674551a0582e5c4 and before was discovered to contain an integer overflow via the component plutosvg_load_from_memory.

  • 7.5 High severity

    Red Hat Enterprise Linux 6 Extended Lifecycle…: Integer Overflow or Wraparound

    CVE-2023-6478Red HatEPSS 1.62%

    A flaw was found in xorg-server. A specially crafted request to RRChangeProviderProperty or RRChangeOutputProperty can trigger an integer overflow which may lead to a disclosure of sensitive information.