Skip to content
OpenAdvisories
High · 8.8 CVE-2019-5063 EUVD-2021-2226GHSA-m6vm-8g8v-xfjhPYSEC-2026-2801PYSEC-2026-2826PYSEC-2026-2840PYSEC-2026-724

Out-of-bounds Write in OpenCV

Published Jan 3, 2020 · Updated Aug 4, 2024 · Assigned by talos

Description

An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV 4.1.0. A specially crafted XML file can cause a buffer overflow, resulting in multiple heap corruptions and potential code execution. An attacker can provide a specially crafted file to trigger this vulnerability.

Affected products

VendorProductAffectedFixed
— OpenCV OpenCV 4.1.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 opencv 4.2.0+dfsg-3 —
Debian 13 opencv 4.2.0+dfsg-3 —
Debian 12 opencv 4.2.0+dfsg-3 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI opencv-contrib-python <= 4.1.0.25 — GHSA-m6vm-8g8v-xfjh
PyPI opencv-contrib-python-headless <= 4.1.0.25 — GHSA-m6vm-8g8v-xfjh
PyPI opencv-python <= 4.1.0.25 — GHSA-m6vm-8g8v-xfjh
PyPI opencv-python-headless <= 4.1.0.25 — GHSA-m6vm-8g8v-xfjh

References