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

  • 8.8 High severity

    Red Hat Advanced Cluster Security 4.2: Integer Overflow or Wraparound

    CVE-2023-5869Red HatEPSS 4.32%

    A flaw was found in PostgreSQL that allows authenticated database users to execute arbitrary code through missing overflow checks during SQL array value modification. This issue exists due to an integer overflow during array modification where a remote user ca

  • 7.8 High severity

    Android: Integer Overflow or Wraparound

    CVE-2023-48409Google

    In gpu_pixel_handle_buffer_liveness_update_ioctl of private/google-modules/gpu/mali_kbase/mali_kbase_core_linux.c, there is a possible out of bounds write due to an integer overflow. This could lead to local escalation of privilege with no additional execution

  • 7.8 High severity

    Samsung Mobile Devices: Integer Overflow or Wraparound

    CVE-2023-42563Samsung

    Integer overflow vulnerability in landmarkCopyImageToNative of libFacePreProcessingjni.camera.samsung.so prior to SMR Dec-2023 Release 1 allows attacker to trigger heap overflow.

  • 7.8 High severity

    Samsung Mobile Devices: Integer Overflow or Wraparound

    CVE-2023-42562Samsung

    Integer overflow vulnerability in detectionFindFaceSupportMultiInstance of libFacePreProcessingjni.camera.samsung.so prior to SMR Dec-2023 Release 1 allows attacker to trigger heap overflow.

  • 7.8 High severity

    Qualcomm Multiple Chipsets Integer Overflow Exploited

    CVE-2023-33107QualcommEPSS 1.02%

    Memory corruption in Graphics Linux while assigning shared virtual memory region during IOCTL call.

  • 9.6 Critical severity

    Google Skia Integer Overflow Exploited

    CVE-2023-6345GoogleEPSS 16.5%

    Integer overflow in Skia in Google Chrome prior to 119.0.6045.199 allowed a remote attacker who had compromised the renderer process to potentially perform a sandbox escape via a malicious file. (Chromium security severity: High)

  • 7.5 High severity

    ATP series firmware: Integer Overflow or Wraparound

    CVE-2023-4398Zyxel

    An integer overflow vulnerability in the source code of the QuickSec IPSec toolkit used in the VPN feature of the Zyxel ATP series firmware versions 4.32 through 5.37, USG FLEX series firmware versions 4.50 through 5.37, USG FLEX 50(W) series firmware versions

  • 8.8 High severity

    Zephyr: Buffer Copy without Checking Size of Input

    CVE-2023-4424Zephyrproject-rtos

    An malicious BLE device can cause buffer overflow by sending malformed advertising packet BLE device using Zephyr OS, leading to DoS or potential RCE on the victim BLE device.

  • 8.8 High severity

    Chrome: Integer Overflow or Wraparound

    CVE-2023-5849GoogleEPSS 1.22%

    Integer overflow in USB in Google Chrome prior to 119.0.6045.105 allowed a remote attacker to potentially exploit heap corruption via a crafted HTML page. (Chromium security severity: High)

  • 7.8 High severity

    Android: Integer Overflow or Wraparound

    CVE-2023-21375Google

    In Sysproxy, there is a possible out of bounds write due to an integer underflow. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.

  • 8.8 High severity

    Openimageio: Integer Overflow or Wraparound

    CVE-2023-42295OpenImageIOEPSS 1%

    An issue in OpenImageIO oiio v.2.4.12.0 allows a remote attacker to execute arbitrary code and cause a denial of service via the read_rle_image function of file bifs/unquantize.c

  • 7.8 High severity

    stb: Integer Overflow or Wraparound

    CVE-2023-45681Nothings

    stb_vorbis is a single file MIT licensed library for processing ogg vorbis files. A crafted file may trigger memory write past an allocated heap buffer in `start_decoder`. The root cause is a potential integer overflow in `sizeof(char*) * (f->comment_list_leng

  • 7.8 High severity

    GSDK: Integer Overflow or Wraparound

    CVE-2023-3487Silabs.com

    An integer overflow in Silicon Labs Gecko Bootloader version 4.3.1 and earlier allows unbounded memory access when reading from or writing to storage slots.

  • 7.8 High severity

    Ichitaro 2023: Integer Overflow or Wraparound

    CVE-2023-38127Ichitaro 2023

    An integer overflow exists in the "HyperLinkFrame" stream parser of Ichitaro 2023 1.0.1.59372. A specially crafted document can cause the parser to make an under-sized allocation, which can later allow for memory corruption, potentially resulting in arbitrary

  • 7.8 High severity

    Zchunk: Integer Overflow or Wraparound

    CVE-2023-46228Zchunk

    zchunk before 1.3.2 has multiple integer overflows via malformed zchunk files to lib/comp/comp.c, lib/comp/zstd/zstd.c, lib/dl/multipart.c, or lib/header.c.

  • 9.8 Critical severity

    zlib: Integer Overflow or Wraparound

    CVE-2023-45853ZlibEPSS 3.45%

    MiniZip in zlib through 1.3 has an integer overflow and resultant heap-based buffer overflow in zipOpenNewFileInZip4_64 via a long filename, comment, or extra field. NOTE: MiniZip is not a supported part of the zlib product. NOTE: pyminizip through 0.2.6 is al

  • 9.8 Critical severity

    YF325: Out-of-bounds Write

    CVE-2023-35968Yifan

    Two heap-based buffer overflow vulnerabilities exist in the gwcfg_cgi_set_manage_post_data functionality of Yifan YF325 v1.0_20221108. A specially crafted network request can lead to a heap buffer overflow. An attacker can send a network request to trigger the

  • 9.8 Critical severity

    YF325: Out-of-bounds Write

    CVE-2023-35967Yifan

    Two heap-based buffer overflow vulnerabilities exist in the gwcfg_cgi_set_manage_post_data functionality of Yifan YF325 v1.0_20221108. A specially crafted network request can lead to a heap buffer overflow. An attacker can send a network request to trigger the

  • 9.8 Critical severity

    YF325: Out-of-bounds Write

    CVE-2023-35966Yifan

    Two heap-based buffer overflow vulnerabilities exist in the httpd manage_post functionality of Yifan YF325 v1.0_20221108. A specially crafted network request can lead to a heap buffer overflow. An attacker can send a network request to trigger these vulnerabil

  • 9.8 Critical severity

    YF325: Out-of-bounds Write

    CVE-2023-35965Yifan

    Two heap-based buffer overflow vulnerabilities exist in the httpd manage_post functionality of Yifan YF325 v1.0_20221108. A specially crafted network request can lead to a heap buffer overflow. An attacker can send a network request to trigger these vulnerabil

  • 7.5 High severity

    jetty.project: Integer Overflow or Wraparound

    CVE-2023-36478Eclipse FoundationEPSS 4.83%

    Eclipse Jetty provides a web server and servlet container. In versions 11.0.0 through 11.0.15, 10.0.0 through 10.0.15, and 9.0.0 through 9.4.52, an integer overflow in `MetaDataBuilder.checkSize` allows for HTTP/2 HPACK header values to exceed their size limit

  • 7.8 High severity

    Red Hat Enterprise Linux 8: Integer Overflow or Wraparound

    CVE-2023-43787Red Hat

    A vulnerability was found in libX11 due to an integer overflow within the XCreateImage() function. This flaw allows a local user to trigger an integer overflow and execute arbitrary code with elevated privileges.

  • 7.5 High severity

    Firefox: Integer Overflow or Wraparound

    CVE-2023-5173Mozilla

    In a non-standard configuration of Firefox, an integer overflow could have occurred based on network traffic (possibly under influence of a local unprivileged webpage), leading to an out-of-bounds write to privileged process memory. *This bug only affects Fire

  • 7.5 High severity

    SIMATIC BRAUMAT: Integer Overflow or Wraparound

    CVE-2023-28831SiemensEPSS 1.13%

    The OPC UA implementations (ANSI C and C++) in affected products contain an integer overflow vulnerability that could cause the application to run into an infinite loop during certificate validation. This could allow an unauthenticated remote attacker to creat

  • 9.8 Critical severity

    Android: Integer Overflow or Wraparound

    CVE-2023-35681Google

    In eatt_l2cap_reconfig_completed of eatt_impl.h, there is a possible out of bounds write due to an integer overflow. This could lead to remote code execution with no additional execution privileges needed. User interaction is not needed for exploitation.

  • 8.8 High severity

    Android: Integer Overflow or Wraparound

    CVE-2023-35673Google

    In build_read_multi_rsp of gatt_sr.cc, there is a possible out of bounds write due to an integer overflow. This could lead to remote (proximal/adjacent) code execution with no additional execution privileges needed. User interaction is not needed for exploitat

  • 8.6 High severity

    Firefox: Integer Overflow or Wraparound

    CVE-2023-4576Mozilla

    On Windows, an integer overflow could occur in `RecordedSourceSurfaceCreation` which resulted in a heap buffer overflow potentially leaking sensitive data that could have led to a sandbox escape. *This bug only affects Firefox on Windows. Other operating syste

  • 9.8 Critical severity

    Libtommath: Integer Overflow or Wraparound

    CVE-2023-36328LibtomEPSS 1.26%

    Integer Overflow vulnerability in mp_grow in libtom libtommath before commit beba892bc0d4e4ded4d667ab1d2a94f4d75109a9, allows attackers to execute arbitrary code and cause a denial of service (DoS).

  • 9.8 Critical severity

    Relic: Integer Overflow or Wraparound

    CVE-2023-36327Relic Project

    Integer Overflow vulnerability in RELIC before commit 421f2e91cf2ba42473d4d54daf24e295679e290e, allows attackers to execute arbitrary code and cause a denial of service in pos argument in bn_get_prime function.

  • 9.8 Critical severity

    Relic: Integer Overflow or Wraparound

    CVE-2023-36326Relic Project

    Integer Overflow vulnerability in RELIC before commit 34580d840469361ba9b5f001361cad659687b9ab, allows attackers to execute arbitrary code, cause a denial of service, and escalate privileges when calling realloc function in bn_grow function.

  • 9.8 Critical severity

    FreeRDP: Integer Overflow or Wraparound

    CVE-2023-40186FreeRDPEPSS 1.36%

    FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions are subject to an IntegerOverflow leading to Out-Of-Bound Write Vulnerability in the `gdi_CreateSurface` function. This issue affects Fr

  • 7.8 High severity

    rizin: Integer Overflow or Wraparound

    CVE-2023-40022Rizinorg

    Rizin is a UNIX-like reverse engineering framework and command-line toolset. Versions 0.6.0 and prior are vulnerable to integer overflow in `consume_count` of `src/gnu_v2/cplus-dem.c`. The overflow check is valid logic but, is missing the modulus if the block

  • 7.5 High severity

    Ntsc-crt: Integer Overflow or Wraparound

    CVE-2023-39125Ntsc-crt Project

    NTSC-CRT 2.2.1 has an integer overflow and out-of-bounds write in loadBMP in bmp_rw.c because a file's width, height, and BPP are not validated. NOTE: the vendor's perspective is "this main application was not intended to be a well tested program, it's just so

  • 7.5 High severity

    ThinManager ThinServer: Integer Overflow or Wraparound

    CVE-2023-2914Rockwell AutomationEPSS 39.7%

    The Rockwell Automation Thinmanager Thinserver is impacted by an improper input validation vulnerability, an integer overflow condition exists in the affected products. When the ThinManager processes incoming messages, a read access violation occurs and termin

  • 9.8 Critical severity

    UniFi Access Points: Integer Overflow or Wraparound

    CVE-2023-35085UbiquitiEPSS 1.04%

    An integer overflow vulnerability in all UniFi Access Points and Switches, excluding the Switch Flex Mini, with SNMP Monitoring and default settings enabled could allow a Remote Code Execution (RCE). Affected Products: All UniFi Access Points (Version 6.5.50 a

  • 7.5 High severity

    FreeBSD: Integer Overflow or Wraparound

    CVE-2023-3107FreeBSD

    A set of carefully crafted ipv6 packets can trigger an integer overflow in the calculation of a fragment reassembled packet's payload length field. This allows an attacker to trigger a kernel panic, resulting in a denial of service.

  • 9.8 Critical severity

    tvOS: Integer Overflow or Wraparound

    CVE-2023-36495AppleEPSS 1.27%

    An integer overflow was addressed with improved input validation. This issue is fixed in watchOS 9.6, macOS Monterey 12.6.8, iOS 15.7.8 and iPadOS 15.7.8, tvOS 16.6, iOS 16.6 and iPadOS 16.6, macOS Ventura 13.5. An app may be able to execute arbitrary code wit

  • 7.5 High severity

    Pcre2: Integer Overflow or Wraparound

    CVE-2022-41409PCREEPSS 1.12%

    Integer overflow vulnerability in pcre2test before 10.41 allows attackers to cause a denial of service or other unspecified impacts via negative input.

  • 7.8 High severity

    Libsndfile: Integer Overflow or Wraparound

    CVE-2022-33065Libsndfile Project

    Multiple signed integers overflow in function au_read_header in src/au.c and in functions mat4_open and mat4_read_header in src/mat4.c in Libsndfile, allows an attacker to cause Denial of Service or other unspecified impacts.

  • 7.8 High severity

    Android: Integer Overflow or Wraparound

    CVE-2023-21241Google

    In rw_i93_send_to_upper of rw_i93.cc, there is a possible out of bounds write due to an integer overflow. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.