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

  • 9.8 Critical severity

    libaom: Integer Overflow or Wraparound

    CVE-2024-5171LibaomEPSS 1.26%

    Integer overflow in libaom internal function img_alloc_helper can lead to heap buffer overflow. This function can be reached via 3 callers: * Calling aom_img_alloc() with a large value of the d_w, d_h, or align parameter may result in integer overflows in the

  • 9.1 Critical severity

    netty-incubator-codec-ohttp: Integer Overflow or Wraparound

    CVE-2024-36121Netty

    netty-incubator-codec-ohttp is the OHTTP implementation for netty. BoringSSLAEADContext keeps track of how many OHTTP responses have been sent and uses this sequence number to calculate the appropriate nonce to use with the encryption algorithm. Unfortunately,

  • 9.1 Critical severity

    libvpx: Integer Overflow or Wraparound

    CVE-2024-5197Chromium

    There exists interger overflows in libvpx in versions prior to 1.14.1. Calling vpx_img_alloc() with a large value of the d_w, d_h, or align parameter may result in integer overflows in the calculations of buffer sizes and offsets and some fields of the returne

  • 7.0 High severity

    MPLAB® Harmony 3 Core Module: Integer Overflow or Wraparound

    CVE-2024-30212Microchip

    If a SCSI READ(10) command is initiated via USB using the largest LBA (0xFFFFFFFF) with it's default block size of 512 and a count of 1, the first 512 byte of the 0x80000000 memory area is returned to the user. If the block count is increased, the full RAM can

  • 7.8 High severity

    GStreamer: Integer Overflow or Wraparound

    CVE-2024-4453GStreamerEPSS 1.58%

    GStreamer EXIF Metadata Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GStreamer. Interaction with this library is required to exploit this vulnera

  • 7.8 High severity

    Linux: Improper Validation of Array Index

    CVE-2024-35905Linux

    In the Linux kernel, the following vulnerability has been resolved: bpf: Protect against int overflow for stack access size This patch re-introduces protection against the size of access to stack memory being negative; the access size can appear negative as a

  • 8.1 High severity

    npgsql: Improper Neutralization of Special Elements used in an SQL Command

    CVE-2024-32655NpgsqlEPSS 1.72%

    Npgsql is the .NET data provider for PostgreSQL. The `WriteBind()` method in `src/Npgsql/Internal/NpgsqlConnector.FrontendMessages.cs` uses `int` variables to store the message length and the sum of parameter lengths. Both variables overflow when the sum of pa

  • 7.8 High severity

    GIMP: Integer Overflow or Wraparound

    CVE-2023-44443GIMPEPSS 93.6%

    GIMP PSP File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GIMP. User interaction is required to exploit this vulnerability in that the target mu

  • 7.5 High severity

    UaGateway: Integer Overflow or Wraparound

    CVE-2023-41185Unified Automation

    Unified Automation UaGateway Certificate Parsing Integer Overflow Denial-of-Service Vulnerability. This vulnerability allows remote attackers to create a denial-of-service condition on affected installations of Unified Automation UaGateway. Authentication is n

  • 8.8 High severity

    GStreamer: Integer Overflow or Wraparound

    CVE-2023-40475GStreamerEPSS 2.1%

    GStreamer MXF File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GStreamer. Interaction with this library is required to exploit this vulnerabilit

  • 8.8 High severity

    GStreamer: Integer Overflow or Wraparound

    CVE-2023-40474GStreamerEPSS 2.1%

    GStreamer MXF File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GStreamer. Interaction with this library is required to exploit this vulnerabilit

  • 8.8 High severity

    GStreamer: Integer Overflow or Wraparound

    CVE-2023-38104GStreamerEPSS 1.4%

    GStreamer RealMedia File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GStreamer. Interaction with this library is required to exploit this vulner

  • 8.8 High severity

    GStreamer: Integer Overflow or Wraparound

    CVE-2023-38103GStreamerEPSS 1.52%

    GStreamer RealMedia File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GStreamer. Interaction with this library is required to exploit this vulner

  • 8.8 High severity

    GStreamer: Integer Overflow or Wraparound

    CVE-2023-37327GStreamerEPSS 1.7%

    GStreamer FLAC File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of GStreamer. Interaction with this library is required to exploit this vulnerabili

  • 8.6 High severity

    uriparser: Integer Overflow or Wraparound

    CVE-2024-34402Uriparser ProjectEPSS 1.23%

    An issue was discovered in uriparser through 0.9.7. ComposeQueryEngine in UriQuery.c has an integer overflow via long keys or values, with a resultant buffer overflow.

  • 9.8 Critical severity

    stb_vorbis.c: Out-of-bounds Write

    CVE-2023-47212StbEPSS 1.41%

    A heap-based buffer overflow vulnerability exists in the comment functionality of stb _vorbis.c v1.22. A specially crafted .ogg file can lead to an out-of-bounds write. An attacker can provide a malicious file to trigger this vulnerability.

  • 8.2 High severity

    QTS: Integer Overflow or Wraparound

    CVE-2024-21905QNAP

    An integer overflow or wraparound vulnerability has been reported to affect several QNAP operating system versions. If exploited, the vulnerability could allow users to compromise the security of the system via a network. We have already fixed the vulnerabilit

  • 9.8 Critical severity

    FreeRDP: Integer Overflow or Wraparound

    CVE-2024-32039FreeRDPEPSS 2.27%

    FreeRDP is a free implementation of the Remote Desktop Protocol. FreeRDP based clients using a version of FreeRDP prior to 3.5.0 or 2.11.6 are vulnerable to integer overflow and out-of-bounds write. Versions 3.5.0 and 2.11.6 patch the issue. As a workaround, d

  • 7.5 High severity

    Avalanche: Integer Overflow or Wraparound

    CVE-2024-23531IvantiEPSS 2.38%

    An Integer Overflow vulnerability in WLInfoRailService component of Ivanti Avalanche before 6.4.3 allows an unauthenticated remote attacker to perform denial of service attacks. In certain rare conditions this could also lead to reading content from memory.

  • 7.5 High severity

    libcoap: Integer Overflow or Wraparound

    CVE-2024-31031Libcoap

    An issue in `coap_pdu.c` in libcoap 4.3.4 allows attackers to cause undefined behavior via a sequence of messages leading to unsigned integer overflow.

  • 7.8 High severity

    Linux: Improper Restriction of Operations within the Bounds of a Memory Buffer

    CVE-2024-26884Linux

    In the Linux kernel, the following vulnerability has been resolved: bpf: Fix hashtab overflow check on 32-bit arches The hashtab code relies on roundup_pow_of_two() to compute the number of hash buckets, and contains an overflow check by checking if the result

  • 7.8 High severity

    Animate: Integer Overflow or Wraparound

    CVE-2024-20795Adobe

    Animate versions 23.0.4, 24.0.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 victim

  • 9.8 Critical severity

    ThreadX: Integer Overflow or Wraparound

    CVE-2024-2452Eclipse Foundation

    In Eclipse ThreadX NetX Duo before 6.4.0, if an attacker can control parameters of __portable_aligned_alloc() could cause an integer wrap-around and an allocation smaller than expected. This could cause subsequent heap buffer overflows.

  • 7.8 High severity

    ThreadX: Integer Overflow or Wraparound

    CVE-2024-2212Eclipse Foundation

    In Eclipse ThreadX before 6.4.0, xQueueCreate() and xQueueCreateSet() functions from the FreeRTOS compatibility API (utility/rtos_compatibility_layers/FreeRTOS/tx_freertos.c) were missing parameter checks. This could lead to integer wraparound, under-allocatio

  • 9.8 Critical severity

    MELSEC-Q Series Q03UDECPU: Integer Overflow or Wraparound

    CVE-2024-1917Mitsubishi ElectricEPSS 1.07%

    Integer Overflow or Wraparound vulnerability in Mitsubishi Electric Corporation MELSEC-Q Series and MELSEC-L Series CPU modules allows a remote unauthenticated attacker to execute malicious code on a target product by sending a specially crafted packet.

  • 9.8 Critical severity

    MELSEC-Q Series Q03UDECPU: Integer Overflow or Wraparound

    CVE-2024-1916Mitsubishi ElectricEPSS 1.07%

    Integer Overflow or Wraparound vulnerability in Mitsubishi Electric Corporation MELSEC-Q Series and MELSEC-L Series CPU modules allows a remote unauthenticated attacker to execute malicious code on a target product by sending a specially crafted packet.

  • 9.8 Critical severity

    MELSEC-Q Series Q03UDECPU: Integer Overflow or Wraparound

    CVE-2024-0803Mitsubishi ElectricEPSS 1.04%

    Integer Overflow or Wraparound vulnerability in Mitsubishi Electric Corporation MELSEC-Q Series and MELSEC-L Series CPU modules allows a remote unauthenticated attacker to execute malicious code on a target product by sending a specially crafted packet.

  • 9.8 Critical severity

    pgx: Improper Neutralization of Special Elements used in an SQL Command

    CVE-2024-27304JackcEPSS 1.11%

    pgx is a PostgreSQL driver and toolkit for Go. SQL injection can occur if an attacker can cause a single query or bind message to exceed 4 GB in size. An integer overflow in the calculated message size can cause the one large message to be sent as multiple mes

  • 9.1 Critical severity

    spicedb: Integer Overflow or Wraparound

    CVE-2024-27101Authzed

    SpiceDB is an open source, Google Zanzibar-inspired database for creating and managing security-critical application permissions. Integer overflow in chunking helper causes dispatching to miss elements or panic. Any SpiceDB cluster with any schema where a reso

  • 9.8 Critical severity

    llama.cpp: Out-of-bounds Write

    CVE-2024-23605Llama.cppEPSS 1.34%

    A heap-based buffer overflow vulnerability exists in the GGUF library header.n_kv functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

  • 9.8 Critical severity

    llama.cpp: Out-of-bounds Write

    CVE-2024-23496Llama.cppEPSS 1.34%

    A heap-based buffer overflow vulnerability exists in the GGUF library gguf_fread_str functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

  • 9.8 Critical severity

    llama.cpp: Out-of-bounds Write

    CVE-2024-21836Llama.cppEPSS 1.34%

    A heap-based buffer overflow vulnerability exists in the GGUF library header.n_tensors functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

  • 9.8 Critical severity

    llama.cpp: Out-of-bounds Write

    CVE-2024-21825Llama.cppEPSS 1.34%

    A heap-based buffer overflow vulnerability exists in the GGUF library GGUF_TYPE_ARRAY/GGUF_TYPE_STRING parsing functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code execution. An attacker can provide a malicious file to tri

  • 9.8 Critical severity

    libbiosig: Integer Overflow or Wraparound

    CVE-2024-21812The Biosig ProjectEPSS 1.76%

    An integer overflow vulnerability exists in the sopen_FAMOS_read functionality of The Biosig Project libbiosig 2.5.0 and Master Branch (ab0ee111). A specially crafted .famos file can lead to an out-of-bounds write which in turn can lead to arbitrary code execu

  • 8.8 High severity

    dav1d: Integer Overflow or Wraparound

    CVE-2024-1580VideoLANEPSS 1.84%

    An integer overflow in dav1d AV1 decoder that can occur when decoding videos with large frame size. This can lead to memory corruption within the AV1 decoder. We recommend upgrading past version 1.4.0 of dav1d.

  • 7.8 High severity

    Acrobat Reader: Integer Overflow or Wraparound

    CVE-2024-20730AdobeEPSS 4.45%

    Acrobat Reader versions 20.005.30539, 23.008.20470 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 interactio

  • 7.5 High severity

    Mbed TLS: Integer Overflow or Wraparound

    CVE-2024-23775ArmEPSS 1.11%

    Integer Overflow vulnerability in Mbed TLS 2.x before 2.28.7 and 3.x before 3.5.2, allows attackers to cause a denial of service (DoS) via mbedtls_x509_set_extension().

  • 7.4 High severity

    Red Hat Enterprise Linux 7: Integer Overflow or Wraparound

    CVE-2023-40548Red Hat

    A buffer overflow was found in Shim in the 32-bit system. The overflow happens due to an addition operation involving a user-controlled value parsed from the PE binary being used by Shim. This value is further used for memory allocation operations, leading to

  • 9.8 Critical severity

    Ffmpeg: Integer Overflow or Wraparound

    CVE-2024-22860FFmpegEPSS 1.31%

    Integer overflow vulnerability in FFmpeg before n6.1, allows remote attackers to execute arbitrary code via the jpegxl_anim_read_packet component in the JPEG XL Animation decoder.

  • 9.8 Critical severity

    Poco: Integer Overflow or Wraparound

    CVE-2023-52389Pocoproject

    UTF32Encoding.cpp in POCO has a Poco::UTF32Encoding integer overflow and resultant stack buffer overflow because Poco::UTF32Encoding::convert() and Poco::UTF32::queryConvert() may return a negative integer if a UTF-32 byte sequence evaluates to a value of 0x80