Vulnerability in opencv-python: CVE-2023-4863

opencv-python Updated 02 Oct 2025

Summary

29/09/2023
N/A
Yes i
Unrated
Not published

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 ↓

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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for opencv-python.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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 →

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