PYSEC-2026-2831

    Dashboard / Vulnerabilities / PYSEC-2026-2831

    PYSEC-2026-2831

    Published: 9 Jul 2026Last Modified: 13 Jul 2026

    Summary: Improper Restriction of Operations within the Bounds of a Memory Buffer in OpenCV

    Details: OpenCV (Open Source Computer Vision Library) through 3.3 (corresponding to OpenCV-Python 3.3.0.9) has a buffer overflow in the cv::BmpDecoder::readData function in modules/imgcodecs/src/grfmt_bmp.cpp when reading an image file by using cv::imread, as demonstrated by the 4-buf-overflow-readData-memcpy test case.

    Affected packages

    Package

    Name: opencv-python

    Purl: pkg:pypi/opencv-python

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -3.3.1.11

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High