Out-of-bounds Write in OpenCV
OpenCV
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| opencv-python PyPI |
|
|
| opencv-python-headless PyPI |
|
|
| opencv-contrib-python PyPI |
OpenCV
| Product | Affected | Fixed in |
|---|---|---|
| opencv-python PyPI |
|
|
| opencv-python-headless PyPI |
|
|
| opencv-contrib-python PyPI |
< 4.2.0.32
|
| opencv-contrib-python-headless PyPI |
|
|
An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV, before version 4.2.0. 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.
From the CVE record · talos
OpenCV before 4.2.0 has a heap buffer overflow in its data structure persistence functionality. An attacker can supply a specially crafted JSON file that, when processed, causes heap corruption and could lead to code execution. The input does not specify whether authentication is required.
Check installations of OpenCV before 4.2.0 and the PyPI packages opencv-python, opencv-python-headless, opencv-contrib-python, and opencv-contrib-python-headless before 4.2.0.32.