USN-7247-1: OpenCV vulnerabilities

Publication date

3 February 2025

Overview

Several security issues were fixed in OpenCV.


Packages

  • opencv - computer vision library

Details

It was discovered that OpenCV did not properly manage certain XML data,
leading to a NULL pointer dereference. If a user were tricked into
loading a specially crafted file, a remote attacker could possibly use
this issue to make OpenCV crash, resulting in a denial of service.
This issue only affected Ubuntu 18.04 LTS. (CVE-2019-14493)

It was discovered that OpenCV may perform out-of-bounds reads in certain
situations. An attacker could possibly use this issue to cause OpenCV to
crash, resulting in a denial of service, or the execution of arbitrary
code. This issue only affected Ubuntu 18.04 LTS.
(CVE-2019-16249, CVE-2019-19624)

It was discovered that the QR code module of OpenCV incorrectly processed
certain maliciously crafted QR codes. A remote attacker could possibly use
this issue to cause OpenCV to crash,...

It was discovered that OpenCV did not properly manage certain XML data,
leading to a NULL pointer dereference. If a user were tricked into
loading a specially crafted file, a remote attacker could possibly use
this issue to make OpenCV crash, resulting in a denial of service.
This issue only affected Ubuntu 18.04 LTS. (CVE-2019-14493)

It was discovered that OpenCV may perform out-of-bounds reads in certain
situations. An attacker could possibly use this issue to cause OpenCV to
crash, resulting in a denial of service, or the execution of arbitrary
code. This issue only affected Ubuntu 18.04 LTS.
(CVE-2019-16249, CVE-2019-19624)

It was discovered that the QR code module of OpenCV incorrectly processed
certain maliciously crafted QR codes. A remote attacker could possibly use
this issue to cause OpenCV to crash, resulting in a denial of service.
This issue only affected Ubuntu 22.04 LTS. (CVE-2023-2617, CVE-2023-2618)


Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
22.04 jammy libopencv-contrib4.5d –  4.5.4+dfsg-9ubuntu4+esm1  
libopencv-core4.5d –  4.5.4+dfsg-9ubuntu4+esm1  
libopencv-dev –  4.5.4+dfsg-9ubuntu4+esm1  
libopencv-dnn4.5d –  4.5.4+dfsg-9ubuntu4+esm1  
libopencv-flann4.5d –  4.5.4+dfsg-9ubuntu4+esm1  
libopencv-imgcodecs4.5d –  4.5.4+dfsg-9ubuntu4+esm1  
libopencv-objdetect4.5d –  4.5.4+dfsg-9ubuntu4+esm1  
opencv-data –  4.5.4+dfsg-9ubuntu4+esm1  
18.04 bionic libopencv-core3.2 –  3.2.0+dfsg-4ubuntu0.1+esm4  
libopencv-dev –  3.2.0+dfsg-4ubuntu0.1+esm4  
opencv-data –  3.2.0+dfsg-4ubuntu0.1+esm4  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›