USN-7757-1: OpenJPEG vulnerabilities

Publication date

18 September 2025

Overview

Several security issues were fixed in OpenJPEG.


Packages

  • openjpeg2 - JPEG 2000 image compression/decompression library

Details

It was discovered that OpenJPEG did not properly handle memory when
decompressing certain image files. An attacker could possibly use this
issue to cause OpenJPEG to crash, resulting in a denial of service. This
issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS,
and Ubuntu 24.04 LTS. (CVE-2025-50952)

It was discovered that OpenJPEG did not properly handle memory when parsing
the headers of certain image files. An attacker could use this issue to
cause OpenJPEG to crash, resulting in a denial of service, or possibly
execute arbitrary code. This issue only affected Ubuntu 25.04.
(CVE-2025-54874)

It was discovered that OpenJPEG did not properly handle memory when
decompressing certain image files. An attacker could possibly use this
issue to cause OpenJPEG to crash, resulting in a denial of service. This
issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS,
and Ubuntu 24.04 LTS. (CVE-2025-50952)

It was discovered that OpenJPEG did not properly handle memory when parsing
the headers of certain image files. An attacker could use this issue to
cause OpenJPEG to crash, resulting in a denial of service, or possibly
execute arbitrary code. This issue only affected Ubuntu 25.04.
(CVE-2025-54874)

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
25.04 plucky libopenjp2-7 –  2.5.3-2ubuntu0.1
24.04 noble libopenjp2-7 –  2.5.0-2ubuntu0.4
22.04 jammy libopenjp2-7 –  2.4.0-6ubuntu0.4
libopenjp3d7 –  2.4.0-6ubuntu0.4
20.04 focal libopenjp2-7 –  2.3.1-1ubuntu4.20.04.4+esm1  
libopenjp3d7 –  2.3.1-1ubuntu4.20.04.4+esm1  
18.04 bionic libopenjp2-7 –  2.3.0-2+deb10u2ubuntu0.1~esm5  
libopenjp3d7 –  2.3.0-2+deb10u2ubuntu0.1~esm5  

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 ›