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

746 results · Clear filters · Feed

  • Low 3.5

    OOB read in `TrioParse` in FreeRDP

    In FreeRDP before version 2.1.2, there is an out of bounds read in TrioParse. Logging might bypass string length checks due to an integer overflow. This is fixed in version 2.1.2.

  • Low 3.7

    Out-of-bound read in FreeRDP

    In FreeRDP before 2.1.0, there is an out-of-bound read in irp functions (parallel_process_irp_create, serial_process_irp_create, drive_process_irp_write, printer_process_irp_write, rdpei_recv_pdu, serial_process_irp_write). This has been fixed in 2.1.0.

  • Low 3.1

    Out-of-bound read in FreeRDP

    In FreeRDP less than or equal to 2.0.0, there is an out-of-bound read in ntlm_read_NegotiateMessage. This has been fixed in 2.1.0.

  • Low 2.2

    Out-of-bounds Read in FreeRDP

    In FreeRDP less than or equal to 2.0.0, there is an out-of-bound data read from memory in clear_decompress_subcode_rlex, visualized on screen as color. This has been patched in 2.1.0.

  • Low 3.1

    Out-of-bounds Read in FreeRDP `ntlm_read_ntlm_v2_response`

    In FreeRDP less than or equal to 2.0.0, there is an out-of-bound read in ntlm_read_ntlm_v2_client_challenge that reads up to 28 bytes out-of-bound to an internal structure. This has been fixed in 2.1.0.

  • Low 2.2

    Out-of-bounds Read in FreeRDP

    In FreeRDP less than or equal to 2.0.0, there is an out-of-bounds read in rfx_process_message_tileset. Invalid data fed to RFX decoder results in garbage on screen (as colors). This has been patched in 2.1.0.

  • Low 3.1

    Out-of-bounds Read in FreeRDP

    In FreeRDP less than or equal to 2.0.0, there is an out-of-bound read in ntlm_read_AuthenticateMessage. This has been fixed in 2.1.0.

  • Low 2.6

    Out-of-bounds Read in FreeRDP

    In FreeRDP before 2.1.0, there is an out-of-bounds read in cliprdr_read_format_list. Clipboard format data read (by client or server) might read data out-of-bounds. This has been fixed in 2.1.0.

  • Low 2.2

    Out-of-bounds Read in FreeRDPrdp_read_flow_control_pdu

    In FreeRDP after 1.0 and before 2.0.0, there is an out-of-bounds read. It only allows to abort a session. No data extraction is possible. This has been fixed in 2.0.0.

  • Low 2.2

    Out-of-bounds Read in FreeRDP

    In FreeRDP after 1.0 and before 2.0.0, there is an out-of-bound read in in update_read_bitmap_data that allows client memory to be read to an image buffer. The result displayed on screen as colour.

  • Low 3.3

    This vulnerability allows remote attackers to disclose sensitive information on affected installations of Foxit Phantom…

  • Low 3.3

    This vulnerability allows remote attackers to disclose sensitive information on affected installations of Foxit Phantom…

  • Low 3.3

    This vulnerability allows remote attackers to disclose sensitive information on affected installations of Foxit Phantom…

  • Low 3.3

    This vulnerability allows remote attackers to disclose sensitive information on affected installations of Foxit Phantom…

  • Low 3.3

    This vulnerability allows remote attackers to disclose sensitive information on affected installations of Foxit Studio …

  • Low 3.3

    This vulnerability allows remote attackers to disclose sensitive information on affected installations of Foxit Studio …

  • Low 3.3

    This vulnerability allows remote attackers to disclose sensitive information on affected installations of Foxit Studio …

  • Low 3.9
    CVE-2020-5254 Public exploit

    NetHack hilite_status parsing privilege escalation

    In NetHack before 3.6.6, some out-of-bound values for the hilite_status option can be exploited. NetHack 3.6.6 resolves this issue.

  • Low 3.3

    This vulnerability allows remote attackers to disclose sensitive information on affected installations of Foxit Reader …

  • Low 3.7

    Buffer underflow in bc_shift_addsub

    In PHP versions 7.2.x below 7.2.26, 7.3.x below 7.3.13 and 7.4.0, PHP bcmath extension functions on some systems, including Windows, can be tricked into reading beyond the allocated space by supplying it with string containing characters that are identified a…

  • Low 3.1

    Postgresql, versions 11.x before 11.5, is vulnerable to a memory disclosure in cross-type comparison for hashed subplan.

  • Low 3.3

    This vulnerability allows remote attackers to disclose sensitive information on affected installations of Foxit Studio …

  • Low 3.3

    This vulnerability allows remote attackers to disclose sensitive information on vulnerable installations of Foxit Studi…

  • Low 3.3

    This vulnerability allows remote attackers to disclose sensitive information on vulnerable installations of Foxit Phant…

  • Low 3.3

    It was discovered the fix for CVE-2018-19758 (libsndfile) was not complete and still allows a read beyond the limits of…

  • Low 3.3

    An out-of-bounds read vulnerability was found in netpbm before 10.61. The expandCodeOntoStack() function has an insuffi…