CVEfocus › CVE database › CVE-2025-54874

CVE-2025-54874OpenJPEG allows OOB heap memory write in opj_jp2_read_header

CVSS 6.6 MediumEPSS 0.7% (higher than 52% of CVEs)Published 2025-08-05Updated 2026-02-26Assigner: GitHub_M

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.

CWE-457

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

17Fixed
19Fix pending
5Under investigation
6Will not fix
20Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10blenderFix pendingUBUNTU-CVE-2025-54874
Ubuntu 26.10qtwebengine-opensource-srcFix pendingUBUNTU-CVE-2025-54874
Ubuntu 26.10texmakerFix pendingUBUNTU-CVE-2025-54874
Ubuntu 26.04blenderUnder investigationUBUNTU-CVE-2025-54874
Ubuntu 26.04ghostscriptNot affected
vulnerable_code_not_present
Ubuntu 26.04openjpeg2Fixed2.5.3-2.1UBUNTU-CVE-2025-54874
Ubuntu 26.04qtwebengine-opensource-srcFix pendingUBUNTU-CVE-2025-54874
Ubuntu 26.04texmakerUnder investigationUBUNTU-CVE-2025-54874
Ubuntu 25.10blenderWill not fix
introduced in 2.5.1 with: https://github.com/uclouvain/openjpeg/commit/0f528e95788863608aa1772f5370659edf618793
UBUNTU-CVE-2025-54874
Ubuntu 25.10ghostscriptNot affected
vulnerable_code_not_present
Ubuntu 25.10openjpeg2Fixed2.5.3-2.1UBUNTU-CVE-2025-54874
Ubuntu 25.10qtwebengine-opensource-srcWill not fix
introduced in 2.5.1 with: https://github.com/uclouvain/openjpeg/commit/0f528e95788863608aa1772f5370659edf618793
UBUNTU-CVE-2025-54874
Ubuntu 25.10texmakerWill not fix
introduced in 2.5.1 with: https://github.com/uclouvain/openjpeg/commit/0f528e95788863608aa1772f5370659edf618793
UBUNTU-CVE-2025-54874
Ubuntu 24.04blenderUnder investigationUBUNTU-CVE-2025-54874
Ubuntu 24.04ghostscriptNot affected
vulnerable_code_not_present
Ubuntu 24.04openjpeg2Not affected
vulnerable_code_not_present
Ubuntu 24.04qtwebengine-opensource-srcFix pendingUBUNTU-CVE-2025-54874
Ubuntu 24.04texmakerFix pendingUBUNTU-CVE-2025-54874
Ubuntu 22.04blenderUnder investigationUBUNTU-CVE-2025-54874
Ubuntu 22.04ghostscriptNot affected
vulnerable_code_not_present
Ubuntu 22.04insighttoolkit4Under investigationUBUNTU-CVE-2025-54874
Ubuntu 22.04openjpeg2Not affected
vulnerable_code_not_present
Ubuntu 22.04qtwebengine-opensource-srcFix pendingUBUNTU-CVE-2025-54874
Ubuntu 22.04texmakerFix pendingUBUNTU-CVE-2025-54874
Ubuntu 20.04blenderFix pendingUBUNTU-CVE-2025-54874
Ubuntu 20.04insighttoolkit4Fix pendingUBUNTU-CVE-2025-54874
Ubuntu 20.04qtwebengine-opensource-srcFix pendingUBUNTU-CVE-2025-54874
Ubuntu 20.04texmakerFix pendingUBUNTU-CVE-2025-54874
Ubuntu 18.04blenderFix pendingUBUNTU-CVE-2025-54874
Ubuntu 18.04insighttoolkit4Fix pendingUBUNTU-CVE-2025-54874
Ubuntu 18.04qtwebengine-opensource-srcFix pendingUBUNTU-CVE-2025-54874
Ubuntu 18.04texmakerFix pendingUBUNTU-CVE-2025-54874
Ubuntu 16.04blenderFix pendingUBUNTU-CVE-2025-54874
Ubuntu 16.04insighttoolkit4Fix pendingUBUNTU-CVE-2025-54874
Ubuntu 16.04texmakerFix pendingUBUNTU-CVE-2025-54874
Debian 14openjpeg2Fixed2.5.3-2.1DEBIAN-CVE-2025-54874
Debian 13openjpeg2Fixed2.5.3-2.1~deb13u1DEBIAN-CVE-2025-54874
Red Hat Enterprise Linux 10openjpeg2Fixed0:2.5.2-4.el10_0.1RHSA-2025:13944
Red Hat Enterprise Linux 10openjpeg2-develFixed0:2.5.2-4.el10_0.1RHSA-2025:13944
Red Hat Enterprise Linux 10openjpeg2-toolsFixed0:2.5.2-4.el10_0.1RHSA-2025:13944
Red Hat Enterprise Linux 9openjpeg2Not affected
Red Hat Enterprise Linux 9openjpeg2-develNot affected
Red Hat Enterprise Linux 9openjpeg2-toolsNot affected
Red Hat Enterprise Linux 8openjpeg2Not affected
Red Hat Enterprise Linux 8openjpeg2-develNot affected
Red Hat Enterprise Linux 8openjpeg2-devel-docsNot affected
Red Hat Enterprise Linux 8openjpeg2-toolsNot affected
Red Hat Enterprise Linux 7openjpegNot affected
Red Hat Enterprise Linux 7openjpeg-develNot affected
Red Hat Enterprise Linux 7openjpeg-libsNot affected
Red Hat Enterprise Linux 7openjpeg2Not affected
Red Hat Enterprise Linux 7openjpeg2-develNot affected
Red Hat Enterprise Linux 7openjpeg2-devel-docsNot affected
Red Hat Enterprise Linux 7openjpeg2-toolsNot affected
Red Hat Enterprise Linux 6openjpegWill not fix
Out of support scope
Red Hat Enterprise Linux 6openjpeg-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6openjpeg-libsWill not fix
Out of support scope
AlmaLinux 10openjpeg2Fixed2.5.2-4.el10_0.1ALSA-2025:13944
AlmaLinux 10openjpeg2-develFixed2.5.2-4.el10_0.1ALSA-2025:13944
AlmaLinux 10openjpeg2-toolsFixed2.5.2-4.el10_0.1ALSA-2025:13944
Rocky Linux 10openjpeg2Fixed0:2.5.2-4.el10_0.1RLSA-2025:13944
Alpine Linux 3.24openjpegFixed2.5.3-r1ALPINE-CVE-2025-54874
Alpine Linux 3.24qt6-qtwebengineFixed6.9.2-r1ALPINE-CVE-2025-54874
Alpine Linux 3.23openjpegFixed2.5.3-r1ALPINE-CVE-2025-54874
Alpine Linux 3.23qt6-qtwebengineFixed6.9.2-r1ALPINE-CVE-2025-54874
Alpine Linux 3.22openjpegFixed2.5.4-r0ALPINE-CVE-2025-54874
Alpine Linux 3.21openjpegFixed2.5.4-r0ALPINE-CVE-2025-54874

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.