Advisory

PYSEC-2026-2802

Also known as: CVE-2019-5064, GHSA-q799-q27x-vp7w, PYSEC-2026-2828, PYSEC-2026-2841, PYSEC-2026-725

Summary

Out-of-bounds Write in OpenCV

Details

An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV, version 4.1.0 (corresponds with OpenCV-Python version 4.1.2.30). A specially crafted JSON file can cause a buffer overflow, resulting in multiple heap corruptions and potentially code execution. An attacker can provide a specially crafted file to trigger this vulnerability.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-07-09 16:49 UTC
Modified
2026-07-13 16:43 UTC

Affected packages and fixes

opencv-contrib-python

PyPI · All systems

Affected

  • introduced 0, fixed 4.2.0.32 (ecosystem)

Fixed versions

4.2.0.32

Fix

  • Fixed version 4.2.0.32
    pip install --upgrade opencv-contrib-python==4.2.0.32

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences