Advisory

GHSA-q799-q27x-vp7w

Also known as: CVE-2019-5064, PYSEC-2026-2802, 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: The source's own band: HIGH

Dates

Published
2021-10-12 22:23 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

opencv-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-python==4.2.0.32

opencv-python-headless

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-python-headless==4.2.0.32

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

opencv-contrib-python-headless

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-headless==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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences