Summary
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)
Fixed packages 4
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · 22.04 LTS 22.04:LTS | openjpeg2 | 2.4.0-6ubuntu0.4 |
| Ubuntu · 24.04 LTS 24.04:LTS | openjpeg2 | 2.5.0-2ubuntu0.4 |
| Ubuntu · Pro 18.04 LTS Pro:18.04:LTS | openjpeg2 | 2.3.0-2+deb10u2ubuntu0.1~esm5 |
| Ubuntu · Pro 20.04 LTS Pro:20.04:LTS | openjpeg2 | 2.3.1-1ubuntu4.20.04.4+esm1 |
Vulnerabilities 2
-
Medium 6.6CVE-2025-54874 Public exploit
OpenJPEG allows OOB heap memory write in opj_jp2_read_header
OpenJPEG is an open-source JPEG 2000 codec. In OpenJPEG from 2.5.1 through 2.5.3, a call to opj_jp2_read_header may lead to OOB heap memory write when the data stream p_stream is too short and p_image is not initialized.
-
Medium 6.5
openjpeg v 2.5.0 was discovered to contain a NULL pointer dereference via the component /openjp2/dwt.c.