Vulnerability in opencv-python: CVE-2023-4863
Summary
PYSEC-2023-183: opencv-python versions before v4.8.1.78 bundled libwebp binaries in wheels that are vulnerable to CVE-2023-4863. Affects opencv-python versions < 4.8.1.78. Fixed in 4.8.1.78. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The opencv-python package is a Python wrapper for the OpenCV library, which provides computer vision and image processing capabilities. It allows developers to utilize OpenCV's functionality in Python applications. However, versions prior to v4.8.1.78 of opencv-python include vulnerable libwebp binaries in their wheels. This vulnerability is tracked as CVE-2023-4863. The issue has been addressed in opencv-python v4.8.1.78, which updates the bundled libwebp binary to v1.3.2.
Vulnerability Detail
The vulnerability in opencv-python arises from the inclusion of vulnerable libwebp binaries in the package. This can lead to potential security risks, as attackers could exploit the vulnerabilities present in the bundled libwebp library. The impact of this vulnerability may vary depending on the specific usage of opencv-python in an application. It is crucial to update to opencv-python v4.8.1.78 or later to mitigate the risk.
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.8.1.78
This is the first release that contains the fix.
pip install --upgrade "opencv-python==4.8.1.78"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The opencv-python package prior to v4.8.1.78 includes vulnerable libwebp binaries, which can pose security risks. It is crucial to update to opencv-python v4.8.1.78 or a later version to mitigate these risks. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for opencv-python →
FAQ
opencv-python is a Python wrapper for the OpenCV library, enabling developers to utilize OpenCV's computer vision and image processing capabilities in Python applications.
The impact of this vulnerability depends on the specific usage of opencv-python in an application. However, it could potentially lead to security breaches if attackers exploit the vulnerabilities present in the bundled libwebp library.
To fix this vulnerability, you should upgrade opencv-python to v4.8.1.78 or a later version using the command 'pip install --upgrade opencv-python'.
No specific workaround has been provided for this vulnerability. It is recommended to update to the latest version of opencv-python.
You can find more information about this vulnerability in the opencv-python advisory database: https://github.com/pypa/advisory-database/blob/main/vulns/opencv-python/PYSEC-2023-183.yaml
References
Related vulnerabilities
Recent vulnerabilities recorded for opencv-python.