HIGH 8.8
PYSEC-2026-724
Out-of-bounds Write in OpenCV
Details
An exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV 4.1.0 (corresponds with OpenCV-Python 4.1.0.25). 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI / opencv-contrib-python-headless
Introduced in:
0 No fixed version published yet for opencv-contrib-python-headless (pip). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-5063 [ADVISORY]
- https://github.com/opencv/opencv/issues/16951 [WEB]
- https://github.com/opencv/opencv-python [PACKAGE]
- https://github.com/opencv/opencv-python/releases/tag/25 [WEB]
- https://talosintelligence.com/vulnerability_reports/TALOS-2019-0852 [WEB]
- https://www.oracle.com//security-alerts/cpujul2021.html [WEB]
- https://www.oracle.com/security-alerts/cpuApr2021.html [WEB]
- https://pypi.org/project/opencv-contrib-python-headless [PACKAGE]
- https://github.com/advisories/GHSA-m6vm-8g8v-xfjh [ADVISORY]