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

    bitcoin_core: Integer Overflow or Wraparound

    CVE-2024-52912Bitcoin

    Bitcoin Core before 0.21.0 allows a network split that is resultant from an integer overflow (calculating the time offset for newly connecting peers) and an abs64 logic bug.

  • 7.5 High severity

    Cisco Cyber Vision: Integer Overflow or Wraparound

    CVE-2022-20685CiscoEPSS 1.46%

    A vulnerability in the Modbus preprocessor of the Snort detection engine could allow an unauthenticated, remote attacker to cause a denial of service (DoS) condition on an affected device. This vulnerability is due to an integer overflow while processing Modbu

  • 9.8 Critical severity

    Android: Integer Overflow or Wraparound

    CVE-2024-43091Google

    In filterMask of SkEmbossMaskFilter.cpp, 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.

  • 7.8 High severity

    ghostscript: Integer Overflow or Wraparound

    CVE-2024-46953Artifex

    An issue was discovered in base/gsdevice.c in Artifex Ghostscript before 10.04.0. An integer overflow when parsing the filename format string (for the output filename) results in path truncation, and possible path traversal and code execution.

  • 9.8 Critical severity

    weechat: Integer Overflow or Wraparound

    CVE-2024-46613Weechat

    WeeChat before 4.4.2 has an integer overflow and resultant buffer overflow at core/core-string.c when there are more than two billion items in a list. This affects string_free_split_shared , string_free_split, string_free_split_command, and string_free_split_t

  • 7.8 High severity

    Android: Integer Overflow or Wraparound

    CVE-2024-47024Google

    In vring_size of external/headers/include/virtio/virtio_ring.h, 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

  • 9.8 Critical severity

    xlight_ftp_server: Integer Overflow or Wraparound

    CVE-2024-46483XlightftpdEPSS 1.11%

    Xlight FTP Server <3.9.4.3 has an integer overflow vulnerability in the packet parsing logic of the SFTP server, which can lead to a heap overflow with attacker-controlled content.

  • 7.8 High severity

    Linux: Integer Overflow or Wraparound

    CVE-2022-49030Linux

    In the Linux kernel, the following vulnerability has been resolved: libbpf: Handle size overflow for ringbuf mmap The maximum size of ringbuf is 2GB on x86-64 host, so 2 * max_entries will overflow u32 when mapping producer page and data pages. Only casting ma

  • 7.8 High severity

    Adobe Framemaker: Integer Overflow or Wraparound

    CVE-2024-47424Adobe

    Adobe Framemaker versions 2020.6, 2022.4 and earlier are affected by an Integer Overflow or Wraparound vulnerability that could result in arbitrary code execution in the context of the current user. Exploitation of this issue requires user interaction in that

  • 7.8 High severity

    Animate: Integer Overflow or Wraparound

    CVE-2024-47416Adobe

    Animate versions 23.0.7, 24.0.4 and earlier are affected by an Integer Overflow or Wraparound vulnerability that could result in arbitrary code execution in the context of the current user. Exploitation of this issue requires user interaction in that a victim

  • 7.8 High severity

    G Structured File Library (libgsf): Integer Overflow or Wraparound

    CVE-2024-42415GNOME Project

    An integer overflow vulnerability exists in the Compound Document Binary File format parser of v1.14.52 of the GNOME Project G Structured File Library (libgsf). A specially crafted file can result in an integer overflow that allows for a heap-based buffer over

  • 7.8 High severity

    G Structured File Library (libgsf): Integer Overflow or Wraparound

    CVE-2024-36474GNOME Project

    An integer overflow vulnerability exists in the Compound Document Binary File format parser of the GNOME Project G Structured File Library (libgsf) version v1.14.52. A specially crafted file can result in an integer overflow when processing the directory from

  • 8.8 High severity

    Chrome: Integer Overflow or Wraparound

    CVE-2024-9123Google

    Integer overflow in Skia in Google Chrome prior to 129.0.6668.70 allowed a remote attacker to perform an out of bounds memory write via a crafted HTML page. (Chromium security severity: High)

  • 7.5 High severity

    shopkit: Integer Overflow or Wraparound

    CVE-2023-45854Shopkit Project

    A Business Logic vulnerability in Shopkit 1.0 allows an attacker to add products with negative quantities to the shopping cart via the qtd parameter in the add-to-cart function.

  • 7.8 High severity

    Illustrator: Integer Overflow or Wraparound

    CVE-2024-34121Adobe

    Illustrator versions 28.6, 27.9.5 and earlier are affected by an Integer Overflow or Wraparound vulnerability that could result in arbitrary code execution in the context of the current user. Exploitation of this issue requires user interaction in that a victi

  • 8.6 High severity

    Automation License Manager V5: Integer Overflow or Wraparound

    CVE-2024-44087SiemensEPSS 10.9%

    A vulnerability has been identified in Automation License Manager V5 (All versions), Automation License Manager V6.0 (All versions < V6.0 SP12 Upd3), Automation License Manager V6.2 (All versions < V6.2 Upd3). Affected applications do not properly validate cer

  • 7.5 High severity

    FreeBSD: Integer Overflow or Wraparound

    CVE-2024-45287FreeBSD

    A malicious value of size in a structure of packed libnv can cause an integer overflow, leading to the allocation of a smaller buffer than required for the parsed data.

  • 9.8 Critical severity

    expat: Integer Overflow or Wraparound

    CVE-2024-45492LibexpatEPSS 1.39%

    An issue was discovered in libexpat before 2.6.3. nextScaffoldPart in xmlparse.c can have an integer overflow for m_groupSize on 32-bit platforms (where UINT_MAX equals SIZE_MAX).

  • 9.8 Critical severity

    expat: Integer Overflow or Wraparound

    CVE-2024-45491LibexpatEPSS 1.13%

    An issue was discovered in libexpat before 2.6.3. dtdCopy in xmlparse.c can have an integer overflow for nDefaultAtts on 32-bit platforms (where UINT_MAX equals SIZE_MAX).

  • 7.8 High severity

    Android: Integer Overflow or Wraparound

    CVE-2024-34740Google

    In attributeBytesBase64 and attributeBytesHex of BinaryXmlSerializer.java, there is a possible arbitrary XML injection due to an integer overflow. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction

  • 7.8 High severity

    Android: Integer Overflow or Wraparound

    CVE-2024-31333Google

    In _MMU_AllocLevel of mmu_common.c, there is a possible arbitrary code execution due to an integer overflow. This could lead to local escalation of privilege in the kernel with no additional execution privileges needed. User interaction is not needed for explo

  • 7.8 High severity

    InDesign Desktop: Integer Overflow or Wraparound

    CVE-2024-41851Adobe

    InDesign Desktop versions ID19.4, ID18.5.2 and earlier are affected by an Integer Overflow or Wraparound vulnerability that could result in arbitrary code execution in the context of the current user. Exploitation of this issue requires user interaction in tha

  • 7.8 High severity

    InCopy: Integer Overflow or Wraparound

    CVE-2024-41858Adobe

    InCopy versions 18.5.2, 19.4 and earlier are affected by an Integer Overflow or Wraparound vulnerability that could result in arbitrary code execution in the context of the current user. Exploitation of this issue requires user interaction in that a victim mus

  • 7.5 High severity

    tensorflow: Integer Overflow or Wraparound

    CVE-2023-33976TensorFlow

    TensorFlow is an end-to-end open source platform for machine learning. `array_ops.upper_bound` causes a segfault when not given a rank 2 tensor. The fix will be included in TensorFlow 2.13 and will also cherrypick this commit on TensorFlow 2.12.

  • 7.8 High severity

    Linux: Integer Overflow or Wraparound

    CVE-2024-42136Linux

    In the Linux kernel, the following vulnerability has been resolved: cdrom: rearrange last_media_change check to avoid unintentional overflow When running syzkaller with the newly reintroduced signed integer wrap sanitizer we encounter this splat: [ 366.015950]

  • 9.8 Critical severity

    keepalived: Integer Overflow or Wraparound

    CVE-2024-41184Acassen

    In the vrrp_ipsets_handler handler (fglobal_parser.c) of keepalived through 2.3.1, an integer overflow can occur. NOTE: this CVE Record might not be worthwhile because an empty ipset name must be configured by the user.

  • 7.8 High severity

    Linux: Integer Overflow or Wraparound

    CVE-2022-48837Linux

    In the Linux kernel, the following vulnerability has been resolved: usb: gadget: rndis: prevent integer overflow in rndis_set_response() If "BufOffset" is very large the "BufOffset + 8" operation can have an integer overflow.

  • 7.8 High severity

    Linux: Integer Overflow or Wraparound

    CVE-2024-41000Linux

    In the Linux kernel, the following vulnerability has been resolved: block/ioctl: prefer different overflow check Running syzkaller with the newly reintroduced signed integer overflow sanitizer shows this report: [ 62.982337] ------------[ cut here ]-----------

  • 7.8 High severity

    Linux: Integer Overflow or Wraparound

    CVE-2024-40994Linux

    In the Linux kernel, the following vulnerability has been resolved: ptp: fix integer overflow in max_vclocks_store On 32bit systems, the "4 * max" multiply can overflow. Use kcalloc() to do the allocation to prevent this.

  • 9.0 Critical severity

    everest-core: Heap-based Buffer Overflow

    CVE-2024-37310EVerest

    EVerest is an EV charging software stack. An integer overflow in the "v2g_incoming_v2gtp" function in the v2g_server.cpp implementation can allow a remote attacker to overflow the process' heap. This vulnerability is fixed in 2024.3.1 and 2024.6.0.

  • 7.8 High severity

    Android: Integer Overflow or Wraparound

    CVE-2024-23695Google

    In CacheOpPMRExec of cache_km.c, there is a possible out of bounds write due to an integer overflow. This could lead to local escalation of privilege in the kernel with no additional execution privileges needed. User interaction is not needed for exploitation.

  • 7.8 High severity

    Bridge: Integer Overflow or Wraparound

    CVE-2024-34139Adobe

    Bridge versions 14.0.4, 13.0.7, 14.1 and earlier are affected by an Integer Overflow or Wraparound vulnerability that could result in arbitrary code execution in the context of the current user. Exploitation of this issue requires user interaction in that a vi

  • 7.8 High severity

    RapidJSON: Integer Overflow or Wraparound

    CVE-2024-39684Tencent

    Tencent RapidJSON is vulnerable to privilege escalation due to an integer overflow in the `GenericReader::ParseNumber()` function of `include/rapidjson/reader.h` when parsing JSON text from a stream. An attacker needs to send the victim a crafted file which ne

  • 7.8 High severity

    Microsoft Windows Hyper-V Privilege Escalation Exploited

    CVE-2024-38080MicrosoftEPSS 7.06%

    Windows Hyper-V Elevation of Privilege Vulnerability

  • 9.8 Critical severity

    tap-windows6: Integer Overflow or Wraparound

    CVE-2024-1305OpenVPNEPSS 15.4%

    tap-windows6 driver version 9.26 and earlier does not properly check the size data of incomming write operations which an attacker can use to overflow memory buffers, resulting in a bug check and potentially arbitrary code execution in kernel space

  • 7.2 High severity

    WBR-6013: Integer Overflow or Wraparound

    CVE-2023-45742LevelOneEPSS 1.18%

    An integer overflow vulnerability exists in the boa updateConfigIntoFlash functionality of Realtek rtl819x Jungle SDK v3.4.11. A specially crafted series of HTTP requests can lead to arbitrary code execution. An attacker can send a sequence of requests to trig

  • 8.2 High severity

    oqs-provider: Buffer Copy without Checking Size of Input

    CVE-2024-37305Open-quantum-safe

    oqs-provider is a provider for the OpenSSL 3 cryptography library that adds support for post-quantum cryptography in TLS, X.509, and S/MIME using post-quantum algorithms from liboqs. Flaws have been identified in the way oqs-provider handles lengths decoded wi

  • 9.8 Critical severity

    Android: Integer Overflow or Wraparound

    CVE-2024-32913Google

    In wl_notify_rx_mgmt_frame of wl_cfg80211.c, 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.

  • 7.8 High severity

    Android: Integer Overflow or Wraparound

    CVE-2024-29784Google

    In prepare_response of lwis_periodic_io.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 privileges needed. User interaction is not needed for exploitation.

  • 8.8 High severity

    Safari: Integer Overflow or Wraparound

    CVE-2024-27833Apple

    An integer overflow was addressed with improved input validation. This issue is fixed in Safari 17.5, iOS 16.7.8 and iPadOS 16.7.8, iOS 17.5 and iPadOS 17.5, tvOS 17.5, visionOS 1.2. Processing maliciously crafted web content may lead to arbitrary code executi