CVE-2025-54874OpenJPEG 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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | blender | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 26.10 | qtwebengine-opensource-src | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 26.10 | texmaker | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 26.04 | blender | Under investigation | UBUNTU-CVE-2025-54874 | |
| Ubuntu 26.04 | ghostscript | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | openjpeg2 | Fixed | 2.5.3-2.1 | UBUNTU-CVE-2025-54874 |
| Ubuntu 26.04 | qtwebengine-opensource-src | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 26.04 | texmaker | Under investigation | UBUNTU-CVE-2025-54874 | |
| Ubuntu 25.10 | blender | Will not fix introduced in 2.5.1 with: https://github.com/uclouvain/openjpeg/commit/0f528e95788863608aa1772f5370659edf618793 | UBUNTU-CVE-2025-54874 | |
| Ubuntu 25.10 | ghostscript | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | openjpeg2 | Fixed | 2.5.3-2.1 | UBUNTU-CVE-2025-54874 |
| Ubuntu 25.10 | qtwebengine-opensource-src | Will not fix introduced in 2.5.1 with: https://github.com/uclouvain/openjpeg/commit/0f528e95788863608aa1772f5370659edf618793 | UBUNTU-CVE-2025-54874 | |
| Ubuntu 25.10 | texmaker | Will not fix introduced in 2.5.1 with: https://github.com/uclouvain/openjpeg/commit/0f528e95788863608aa1772f5370659edf618793 | UBUNTU-CVE-2025-54874 | |
| Ubuntu 24.04 | blender | Under investigation | UBUNTU-CVE-2025-54874 | |
| Ubuntu 24.04 | ghostscript | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | openjpeg2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | qtwebengine-opensource-src | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 24.04 | texmaker | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 22.04 | blender | Under investigation | UBUNTU-CVE-2025-54874 | |
| Ubuntu 22.04 | ghostscript | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | insighttoolkit4 | Under investigation | UBUNTU-CVE-2025-54874 | |
| Ubuntu 22.04 | openjpeg2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | qtwebengine-opensource-src | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 22.04 | texmaker | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 20.04 | blender | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 20.04 | insighttoolkit4 | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 20.04 | qtwebengine-opensource-src | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 20.04 | texmaker | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 18.04 | blender | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 18.04 | insighttoolkit4 | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 18.04 | qtwebengine-opensource-src | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 18.04 | texmaker | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 16.04 | blender | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 16.04 | insighttoolkit4 | Fix pending | UBUNTU-CVE-2025-54874 | |
| Ubuntu 16.04 | texmaker | Fix pending | UBUNTU-CVE-2025-54874 | |
| Debian 14 | openjpeg2 | Fixed | 2.5.3-2.1 | DEBIAN-CVE-2025-54874 |
| Debian 13 | openjpeg2 | Fixed | 2.5.3-2.1~deb13u1 | DEBIAN-CVE-2025-54874 |
| Red Hat Enterprise Linux 10 | openjpeg2 | Fixed | 0:2.5.2-4.el10_0.1 | RHSA-2025:13944 |
| Red Hat Enterprise Linux 10 | openjpeg2-devel | Fixed | 0:2.5.2-4.el10_0.1 | RHSA-2025:13944 |
| Red Hat Enterprise Linux 10 | openjpeg2-tools | Fixed | 0:2.5.2-4.el10_0.1 | RHSA-2025:13944 |
| Red Hat Enterprise Linux 9 | openjpeg2 | Not affected | ||
| Red Hat Enterprise Linux 9 | openjpeg2-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | openjpeg2-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | openjpeg2 | Not affected | ||
| Red Hat Enterprise Linux 8 | openjpeg2-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | openjpeg2-devel-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | openjpeg2-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | openjpeg | Not affected | ||
| Red Hat Enterprise Linux 7 | openjpeg-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | openjpeg-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | openjpeg2 | Not affected | ||
| Red Hat Enterprise Linux 7 | openjpeg2-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | openjpeg2-devel-docs | Not affected | ||
| Red Hat Enterprise Linux 7 | openjpeg2-tools | Not affected | ||
| Red Hat Enterprise Linux 6 | openjpeg | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openjpeg-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openjpeg-libs | Will not fix Out of support scope | ||
| AlmaLinux 10 | openjpeg2 | Fixed | 2.5.2-4.el10_0.1 | ALSA-2025:13944 |
| AlmaLinux 10 | openjpeg2-devel | Fixed | 2.5.2-4.el10_0.1 | ALSA-2025:13944 |
| AlmaLinux 10 | openjpeg2-tools | Fixed | 2.5.2-4.el10_0.1 | ALSA-2025:13944 |
| Rocky Linux 10 | openjpeg2 | Fixed | 0:2.5.2-4.el10_0.1 | RLSA-2025:13944 |
| Alpine Linux 3.24 | openjpeg | Fixed | 2.5.3-r1 | ALPINE-CVE-2025-54874 |
| Alpine Linux 3.24 | qt6-qtwebengine | Fixed | 6.9.2-r1 | ALPINE-CVE-2025-54874 |
| Alpine Linux 3.23 | openjpeg | Fixed | 2.5.3-r1 | ALPINE-CVE-2025-54874 |
| Alpine Linux 3.23 | qt6-qtwebengine | Fixed | 6.9.2-r1 | ALPINE-CVE-2025-54874 |
| Alpine Linux 3.22 | openjpeg | Fixed | 2.5.4-r0 | ALPINE-CVE-2025-54874 |
| Alpine Linux 3.21 | openjpeg | Fixed | 2.5.4-r0 | ALPINE-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.
- uclouvain openjpeg: affected: >= 2.5.1, <= 2.5.3
References
- https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d
- https://github.com/uclouvain/openjpeg/pull/1573
- https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV
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.