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,840 results · Clear filters · Feed

  • Medium 4.4

    In forceStaDisconnection of hostapd.cpp, there is a possible out of bounds read due to a missing bounds check. This cou…

  • Medium 5.5

    In ih264e_init_proc_ctxt of ih264e_process.c, there is a possible out of bounds read due to a heap buffer overflow. Thi…

  • Medium 4.4

    In append_camera_metadata of camera_metadata.c, there is a possible out of bounds read due to a missing bounds check. T…

  • Medium 4.4

    In multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This coul…

  • Medium 4.4

    In multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This coul…

  • Medium 4.4

    In ufdt_local_fixup_prop of ufdt_overlay.c, there is a possible out of bounds read due to an incorrect bounds check. Th…

  • Medium 5.1

    In multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This coul…

  • Medium 4.4

    In multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This coul…

  • Medium 4.4

    In multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This coul…

  • Medium 4.4

    In handleEvent of nan.cpp, there is a possible out of bounds read due to a missing bounds check. This could lead to loc…

  • Medium 4.4

    In multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This coul…

  • Medium 4.4

    In dumpstateBoard of Dumpstate.cpp, there is a possible out of bounds read due to an incorrect bounds check. This could…

  • Medium 4.4

    In btm_ble_write_adv_enable_complete of btm_ble_gap.cc, there is a possible out of bounds read due to a missing bounds …

  • Medium 5.5

    In btm_ble_add_resolving_list_entry_complete of btm_ble_privacy.cc, there is a possible out of bounds read due to a mis…

  • Medium 4.4

    In btm_ble_read_remote_features_complete of btm_ble_gap.cc, there is a possible out of bounds read due to improper inpu…

  • Medium 4.5

    In btm_read_rssi_complete of btm_acl.cc, there is a possible out of bounds read due to a missing bounds check. This cou…

  • Medium 4.4

    In multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This coul…

  • Medium 4.4

    In multiple locations of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This coul…

  • Medium 4.4

    In multiple functions of p2p_iface.cpp, there is a possible out of bounds read due to a missing bounds check. This coul…

  • Medium 5.5

    In btm_create_conn_cancel_complete of btm_sec.cc, there is a possible out of bounds read due to a missing bounds check.…

  • Medium 5.5

    In GetNextSourceDataPacket of bta_av_co.cc, there is a possible out of bounds read due to a missing bounds check. This …

  • Medium 6.0

    Qemu: pvrdma: out-of-bounds read in pvrdma_ring_next_elem_read()

    A flaw was found in the QEMU implementation of VMWare's paravirtual RDMA device. This flaw allows a crafted guest driver to allocate and initialize a huge number of page tables to be used as a ring of descriptors for CQ and async events, potentially leading t…

  • Medium 5.5

    Adobe Illustrator Font Parsing Out-Of-Bounds Read Information Disclosure Vulnerability

    Illustrator version 26.5.2 (and earlier) and 27.2.0 (and earlier) are affected by an out-of-bounds read vulnerability that could lead to disclosure of sensitive memory. An attacker could leverage this vulnerability to bypass mitigations such as ASLR. Exploita…

  • Medium 5.5

    Windows Secure Channel Denial of Service Vulnerability

    Windows Secure Channel Denial of Service Vulnerability

  • Medium 5.5

    In wlan driver, there is a possible missing params check. This could lead to local denial of service in wlan services.

  • Medium 6.8

    LibTIFF 4.4.0 has an out-of-bounds read in tiffcp in tools/tiffcp.c:948, allowing attackers to cause a denial-of-servic…

  • Medium 4.4

    NVIDIA CUDA Toolkit SDK contains a vulnerability in cuobjdump, where a local user running the tool against a malicious …

  • Medium —

    partial_sort contains Out-of-bounds Read in release mode

    Affected versions of this crate were using a debug assertion to validate the `last` parameter of `partial_sort()`. This would allow invalid inputs to cause an out-of-bounds read instead of immediately panicking, when compiled without debug assertions. All wri…

  • Medium 4.9

    X.509 Name Constraints Read Buffer Overflow

    A read buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Note that this occurs after certificate chain signature verification and requires either a CA to have signed the malicious certificate or for t…

  • Medium 5.5

    ttftool v0.9.2 was discovered to contain a segmentation violation via the readU16 function at ttf.c.

  • Medium 5.5

    Adobe Bridge Font Parsing Out-Of-Bounds Read Information Disclosure Vulnerability

    Adobe Bridge versions 12.0.3 (and earlier) and 13.0.1 (and earlier) are affected by an out-of-bounds read vulnerability that could lead to disclosure of sensitive memory. An attacker could leverage this vulnerability to bypass mitigations such as ASLR. Exploi…

  • Medium 5.5

    Adobe Photoshop Font Parsing Out-Of-Bounds Read Information Disclosure Vulnerability

    Photoshop version 23.5.3 (and earlier), 24.1 (and earlier) are affected by an out-of-bounds read vulnerability that could lead to disclosure of sensitive memory. An attacker could leverage this vulnerability to bypass mitigations such as ASLR. Exploitation of…

  • Medium 5.5

    Adobe FrameMaker Font Parsing Out-Of-Bounds Read Information Disclosure Vulnerability

    FrameMaker 2020 Update 4 (and earlier), 2022 (and earlier) are affected by an out-of-bounds read vulnerability that could lead to disclosure of sensitive memory. An attacker could leverage this vulnerability to bypass mitigations such as ASLR. Exploitation of…

  • Medium 5.5

    Adobe Photoshop Font Parsing Out-Of-Bounds Read Information Disclosure Vulnerability

    Photoshop version 23.5.3 (and earlier), 24.1 (and earlier) are affected by an out-of-bounds read vulnerability that could lead to disclosure of sensitive memory. An attacker could leverage this vulnerability to bypass mitigations such as ASLR. Exploitation of…

  • Medium 5.5

    Adobe After Effects Font Parsing Out-Of-Bounds Read Information Disclosure Vulnerability

    After Affects versions 23.1 (and earlier), 22.6.3 (and earlier) are affected by an out-of-bounds read vulnerability that could lead to disclosure of sensitive memory. An attacker could leverage this vulnerability to bypass mitigations such as ASLR. Exploitati…

  • Medium 5.5

    Adobe Bridge Font Parsing Out-Of-Bounds Read Information Disclosure Vulnerability

    Adobe Bridge versions 12.0.3 (and earlier) and 13.0.1 (and earlier) are affected by an out-of-bounds read vulnerability that could lead to disclosure of sensitive memory. An attacker could leverage this vulnerability to bypass mitigations such as ASLR. Exploi…

  • Medium 5.5

    Microsoft Office Information Disclosure Vulnerability

    Microsoft Office Information Disclosure Vulnerability

  • Medium 5.3

    Windows Internet Storage Name Service (iSNS) Server Information Disclosure Vulnerability

    Windows Internet Storage Name Service (iSNS) Server Information Disclosure Vulnerability

  • Medium 5.7

    Microsoft PostScript and PCL6 Class Printer Driver Information Disclosure Vulnerability

    Microsoft PostScript and PCL6 Class Printer Driver Information Disclosure Vulnerability

  • Medium 5.5

    HTTP.sys Information Disclosure Vulnerability

    HTTP.sys Information Disclosure Vulnerability