CVE-2025-53644 OpenCV contains a use after free buffer write due to an uninitialized pointer
An attacker can achieve arbitrary heap buffer write and potential code execution by tricking a user into opening a crafted JPEG image with OpenCV.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-53644?
CVE-2025-53644 is a medium-severity use after free vulnerability in opencv, published on 17 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
OpenCV is an Open Source Computer Vision Library. Versions 4.10.0 and 4.11.0 have an uninitialized pointer variable on stack that may lead to arbitrary heap buffer write when reading crafted JPEG images. Version 4.12.0 fixes the vulnerability.
Weakness: CWE-457
Which versions are affected by CVE-2025-53644?
It affects 1 product.
Products include Opencv Opencv.
How do I fix CVE-2025-53644?
Upgrade to a fixed version.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2025-53644 being exploited?
There is no known exploitation of CVE-2025-53644 in the wild and no public exploit code.
Other vulnerabilities in opencv
Sources
Also known as DEBIAN-CVE-2025-53644, JLSEC-2026-569.