Skip to content
OpenAdvisories

Weakness (CWE)

CWE-125: Out-of-bounds Read

Base Draft

The product reads data past the end, or before the beginning, of the intended buffer.

How to prevent it (2 mitigations)
  1. Implementation

    Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.

    When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."

    Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

    To reduce the likelihood of introducing an out-of-bounds read, ensure that you validate and ensure correct calculations for any length argument, buffer size calculation, or offset. Be especially careful of relying on a sentinel (i.e. special character such as NUL) in untrusted inputs.

  2. Architecture and Design

    Use a language that provides appropriate memory abstractions.

Source: MITRE CWE-125

2,837 results · Clear filters · Feed

  • Medium 6.5

    Microsoft SQL Server Information Disclosure Vulnerability

    Out-of-bounds read in SQL Server allows an authorized attacker to disclose information over a network.

  • Medium 6.5

    Microsoft SQL Server Denial of Service Vulnerability

    Out-of-bounds read in SQL Server allows an authorized attacker to deny service over a network.

  • Medium 6.5

    Microsoft SQL Server Information Disclosure Vulnerability

    Out-of-bounds read in SQL Server allows an authorized attacker to disclose information over a network.

  • Medium 6.5

    Microsoft SQL Server Information Disclosure Vulnerability

    Out-of-bounds read in SQL Server allows an authorized attacker to disclose information over a network.

  • Medium 6.5

    Microsoft SQL Server Information Disclosure Vulnerability

    Out-of-bounds read in SQL Server allows an authorized attacker to disclose information over a network.

  • Medium 4.3

    Heap Out-of-Bounds Read in MongoDB Server Query Planning Component

    A heap out-of-bounds read security issue exists in the query planning component of MongoDB Server. An authenticated user with database read and write privileges can trigger the security issue through crafted query operations, causing the server to read memory…

  • Medium 5.4

    PX4 Autopilot through 1.17.0 Stack Buffer Over-read via netman

    PX4 Autopilot through 1.17.0 contains a stack buffer over-read vulnerability in the netman system command that fails to validate interface name length. Attackers can supply interface names of 74 bytes or more via the -i option to read beyond buffer boundaries…

  • Medium 6.3

    ModelCloud GPTQModel Triton dequantization kernel tritonv2.py out-of-bounds

    A vulnerability has been found in ModelCloud GPTQModel up to 7.2.0. This vulnerability affects unknown code of the file gptqmodel/nn_modules/qlinear/tritonv2.py of the component Triton dequantization kernel. Such manipulation of the argument g_idx leads to ou…

  • Medium 4.2

    In geniezone, there is a possible information disclosure due to a missing bounds check. This could lead to local inform…

  • Medium 5.5

    OOBR in libpcap before 1.10.7

    libpcap BPF interpreter detects neither reaching the end of the filter program buffer due to lack of a return instruction nor executing a jump instruction with an offset that translates to a pointer outside of the buffer. In particular uncommon use cases a cr…

  • Medium 5.5

    CDT before 1.4.5 Out-of-Bounds Read via opposedVertexInd

    CDT before 1.4.5 contains an out-of-bounds read vulnerability in the opposedVertexInd() function when constraint edge intersections are computed in floating point and round outside adjacent triangles. Attackers can supply nearly-degenerate constraint edges th…

  • Medium 6.5
    CVE-2026-85769 Public exploit

    Libtpms: libtpms: heap out-of-bounds read in tpm2 state unmarshalling via unchecked block_skip_read() blocksize

    A flaw was found in libtpms, a library that provides software TPM 2.0 emulation. When restoring TPM 2.0 state (for example during a virtual machine's power-on or state/migration restore), a malformed state blob can supply an oversized skip-block length that i…

  • Medium 5.3

    IBM Db2 Mirror for i is affected by multiple vulnerabilities [, , ]

    IBM Db2 Mirror for i 7.4, 7.5, and 7.6 could allow a remote attacker to cause a denial of service due to an out-of-bounds read.

  • Medium 5.5

    Turso through 0.8.0-pre.8 Out-of-Bounds Read Denial of Service

    Turso through 0.8.0-pre.8 contains an out-of-bounds read vulnerability in the table-leaf page reader that uses an attacker-controlled cell-count field without bounds validation. Attackers can craft a malicious database file with a modified cell count value to…

  • Medium 5.3

    valkey-io valkey Slot Migration cluster_migrateslots.c createSlotImportJob out-of-bounds

    A vulnerability was detected in valkey-io valkey up to 9.5.4/9.1.0. Affected by this vulnerability is the function createSlotImportJob of the file src/cluster_migrateslots.c of the component Slot Migration. The manipulation of the argument job_name results in…

  • Medium 4.4

    Out-of-bounds read vulnerability in Samsung Opensource rLottie allows Overread Buffers. This issue affects rLottie: 256…

  • Medium 5.3

    Heap out-of-bounds read via corrupt nested BSON in field path error message

    An out-of-bounds read in the BSON decoding component of the MongoDB PHP driver may allow an unauthenticated party who supplies specially formed input to have a small amount of adjacent process memory copied into an error message that is returned to applicatio…

  • Medium 5.3

    Gfs2-utils: gfs2-utils: heap out-of-bounds read via unchecked ea_num_ptrs in extended attribute processing

    A heap out-of-bounds read vulnerability was found in gfs2-utils. The ea_num_ptrs field from on-disk extended attribute metadata is consumed without bounds validation, causing a heap buffer over-read that may disclose sensitive memory contents or cause a crash…

  • Medium 5.4

    FreeRDP before 3.31.0 Heap Out-of-Bounds Read via AVC444

    FreeRDP before 3.31.0 contains a heap out-of-bounds read vulnerability in the general_ChromaV1ToYUV444 function during AVC444 chroma plane reconstruction. A malicious RDP server can craft a RFX_AVC444_BITMAP_STREAM with specific frame geometry to trigger an o…

  • Medium 6.5

    Unauthenticated Out-of-Bounds Read Vulnerability leads to Information Disclosure in AOS-CX

    An out-of-bounds read vulnerability exists in the underlying operating system of AOS-CX that could lead to unauthenticated information disclosure by sending a specially crafted packet. Successful exploitation of this vulnerability results in the ability to di…

  • Medium 4.3

    Gvfs: mtp: out-of-bounds read in do_read()

    A flaw was found in the MTP backend in gvfs. When reading a file from a mounted MTP device, do_read() in gvfsbackendmtp.c trusts the data length returned by the device without limiting it to the original size requested by the client. If a malicious MTP device…

  • Medium 4.3

    Systerel S2OPC String Array Range Writing sopc_builtintypes.c set_range_matrix_on_string_array out-of-bounds

    A vulnerability was determined in Systerel S2OPC up to 1.7.3. The affected element is the function set_range_matrix_on_string_array of the file src/Common/opcua_types/sopc_builtintypes.c of the component String Array Range Writing. This manipulation causes ou…

  • Medium 6.1

    Gimp: heap out-of-bounds read in pvr vq (compressed) decoder due to missing bounds check

    A flaw was found in the file-pvr plugin in GIMP. When processing a specially crafted PVR image file, the VQ (compressed) decoder does not properly perform memory bounds checking. This missing validation results in a heap out-of-bounds read. This issue can res…

  • Medium 6.1

    Gimp: heap out-of-bounds read in ico loader via unvalidated used_clrs palette count

    A flaw was found in the file-ico plugin in GIMP. When processing a specially crafted ICO image file, the plugin does not properly validate the used_clrs (palette count) parameter. This incorrect validation leads to improper memory bounds checking, resulting i…

  • Medium 6.1

    Gimp: heap out-of-bounds reads in iff/ilbm loader from ham row size mismatch and nplanes=0

    A flaw was found in the file-iff (IFF/ILBM) plugin in GIMP. When processing a specially crafted IFF/ILBM image file, the plugin does not properly validate the HAM row size and improperly handles cases where the number of color planes (nPlanes) is zero. This c…

  • Medium 4.3

    An attacker that has valid credentials can open many connections to the imap-hibernate service and send invalid command…

  • Medium 5.5

    DNG SDK | Out-of-bounds Read (CWE-125)

    DNG SDK versions 1.7.1 2502 and earlier are affected by an out-of-bounds read vulnerability that could lead to memory exposure. An attacker could leverage this vulnerability to disclose sensitive information from memory. Exploitation of this issue requires us…

  • Medium 5.4

    wicked: out-of-bounds read in the DHCPv4 option parser due to payload length taken from the IP total length

    An out-of-bounds read was found in the DHCPv4 packet capture code of wicked. ni_capture_inspect_udp_header() in src/capture.c reports the IP total length as the payload length instead of the length of the remaining UDP payload. Consequently, the DHCP option w…

  • Medium 6.1

    darknet through 6.0 Out-of-Bounds Read and Write via Unchecked Layer Index in .cfg Parser

    darknet subscripts its layer array with an index taken from a configuration file without checking it against the array's length. The array is allocated in src-lib/darknet_network.cpp as xcalloc(net.n, sizeof(Darknet::Layer)), sized to exactly the number of la…

  • Medium 5.4

    Out-of-bounds read in PTP management TLV TIME parsing in Zephyr net PTP

    The IEEE 1588 PTP management-message parser in subsys/net/lib/ptp/tlv.c mishandles the PTP_MGMT_TIME management id. In tlv_mgmt_post_recv(), the PTP_MGMT_TIME case casts mgmt_tlv->data to a 10-byte struct ptp_timestamp and reads it (then byte-swaps and writes…

  • Medium 4.4

    Gimp: multiple heap out-of-bounds reads in xwd loader from unrelated width and bytes-per-line validation

    A flaw was found in the file-xwd plugin in GIMP. When processing a specially crafted XWD image file, the plugin validates the image width and bytes-per-line parameters independently rather than ensuring their combined values are consistent with the allocated …

  • Medium 6.5

    Out of bounds read in Skia in Google Chrome prior to 152.0.7977.65 allowed a remote attacker who had compromised the re…

  • Medium 6.5

    Out of bounds read in Tint in Google Chrome on on Android prior to 152.0.7977.65 allowed a remote attacker to potential…

  • Medium 6.5

    Out of bounds read in FileSystem in Google Chrome prior to 152.0.7977.65 allowed a remote attacker leveraging social en…

  • Medium 6.5

    Out of bounds read in GPU in Google Chrome on on Android prior to 152.0.7977.65 allowed a remote attacker to read memor…

  • Medium 6.7

    OpenEXR: Out-of-bounds read in HTJ2K decoder from unvalidated chunk header length (PLEN)

    OpenEXR is the reference implementation and specification for the EXR image format, widely used in the motion picture industry. From version 3.4.0 through 3.4.12, the HTJ2K decoder parses a header-length field (PLEN) from a chunk's compressed data but never c…

  • Medium 5.5

    OpenEXR: Empty multiView viewFromChannelName file crash

    OpenEXR is the reference implementation and specification for the EXR image format, widely used in the motion picture industry. OpenEXR versions before 3.2.11, 3.3.0 through 3.3.12, and 3.4.0 through 3.4.13 are vulnerable to crashing. This occurs when Imf::Ge…

  • Medium 5.5

    OpenEXR: Heap out-of-bounds read in OpenEXRCore RLE decoding on ILP32

    OpenEXR is the reference implementation and specification for the EXR image format, widely used in the motion picture industry. OpenEXR versions 3.2.0 through 3.2.10, 3.3.0 through 3.3.12, and 3.4.0 through 3.4.13 are vulnerable on ILP32 builds to a heap out-…

  • Medium 5.5

    OpenEXR: Out-of-bounds read in DeepTiledInputFile sample-count table decode on ILP32

    OpenEXR is the reference implementation and specification for the EXR image format, widely used in the motion picture industry. OpenEXR versions before 3.2.11, 3.3.0 through 3.3.12, and 3.4.0 through 3.4.13 are vulnerable on ILP32 builds to an out-of-bounds r…

  • Medium 5.5

    Substance3D - Painter | Out-of-bounds Read (CWE-125)

    Substance3D - Painter is affected by an out-of-bounds read vulnerability that could lead to disclosure of sensitive memory. An attacker could leverage this vulnerability to disclose sensitive information. Exploitation of this issue requires user interaction i…