CVE-2019-14493: NULL Pointer Dereference in OpenCV

opencv-python Updated 02 Oct 2025

Summary

12/10/2021
Yes i
High
7.5

CVE-2019-14493: NULL Pointer Dereference in OpenCV. Affects opencv-python versions < 4.1.1.26. Fixed in 4.1.1.26. How to fix ↓

Also tracked for

The same CVE-2019-14493 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

OpenCV is an open-source computer vision and machine learning software library. It provides a wide range of functions and algorithms for image and video processing, feature detection, object recognition, and more. OpenCV-Python is a Python wrapper for OpenCV, allowing developers to use OpenCV functionalities in Python applications. However, OpenCV-Python versions before 4.1.1.26 are vulnerable to a NULL pointer dereference in the cv::XMLParser::parse function, located in the persistence.cpp file of the core module. This vulnerability can be exploited to cause a crash or potentially execute arbitrary code.

Vulnerability Detail

The vulnerability arises due to a NULL pointer dereference in the cv::XMLParser::parse function. When parsing XML data, the function fails to handle a NULL pointer, leading to a crash or potential code execution. An attacker can exploit this vulnerability by providing specially crafted XML data to an application that uses the affected OpenCV-Python version. The impact of this vulnerability can range from denial of service (application crash) to potential remote code execution, depending on how the application handles the XML data.

How To Fix

Latest published version: 5.0.0.93 as of 23 Oct 2026

pip install --upgrade "opencv-python==5.0.0.93"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.1.1.26

This is the first release that contains the fix.

pip install --upgrade "opencv-python==4.1.1.26"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update to the fixed version of the OpenCV-Python package to mitigate the risk.

Conclusion

The NULL pointer dereference vulnerability in OpenCV-Python versions before 4.1.1.26 can lead to crashes or potential code execution. It is crucial to update to the fixed version (4.1.1.26 or later) to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for opencv-python →

Share this vulnerability

FAQ

OpenCV is an open-source computer vision and machine learning software library. It provides various functions and algorithms for image and video processing, feature detection, object recognition, and more.

OpenCV-Python is a Python wrapper for OpenCV, allowing developers to use OpenCV functionalities in Python applications.

A NULL pointer dereference occurs when a program attempts to access or manipulate data using a pointer that points to NULL (a memory address with no assigned value). This can lead to crashes or potential code execution if not handled properly.

An attacker can exploit this vulnerability by providing specially crafted XML data to an application that uses the affected OpenCV-Python version. This can lead to a crash or potential remote code execution, depending on how the application handles the XML data.

To fix this vulnerability, update the OpenCV-Python package to version 4.1.1.26 or later by running the command 'pip install --upgrade opencv-python'.

Related vulnerabilities

Recent vulnerabilities recorded for opencv-python.

How To Fix

Latest published version: 5.0.0.93 as of 23 Oct 2026

pip install --upgrade "opencv-python==5.0.0.93"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

4.1.1.26

This is the first release that contains the fix.

pip install --upgrade "opencv-python==4.1.1.26"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback