Vulnerability · Published Jul 17, 2025 · Assigned by GitHub_M
CVE-2025-53644OpenCV contains a use after free buffer write due to an uninitialized pointer
Medium 6.6
In plain English
A medium-severity security flaw in opencv from opencv. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 4.0)6.6Medium
Exploit odds (30 days)0.4%top 61.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | opencv | 3.2.0+dfsg-1 | DEBIAN-CVE-2025-53644 |
| Debian:13 | opencv | 3.2.0+dfsg-1 | DEBIAN-CVE-2025-53644 |
| Debian:14 | opencv | 3.2.0+dfsg-1 | DEBIAN-CVE-2025-53644 |
| Ubuntu:22.04:LTS | opencv | no fix listed | UBUNTU-CVE-2025-53644 |
| Ubuntu:24.04:LTS | opencv | no fix listed | UBUNTU-CVE-2025-53644 |
Affected products (as reported)
Weakness: CWE-457 · Vector: CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
References
- https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV/ x_refsource_CONFIRM
- https://github.com/opencv/opencv/issues/27271 x_refsource_MISC
- https://github.com/opencv/opencv/commit/a39db41390de546d18962ee1278bd6dbb715f466 x_refsource_MISC
- https://github.com/opencv/opencv/releases/tag/4.12.0 x_refsource_MISC