Vulnerability · Published Aug 5, 2025 · Assigned by GitHub_M
CVE-2025-54874OpenJPEG allows OOB heap memory write in opj_jp2_read_header
Medium 6.6
In plain English
A medium-severity security flaw in openjpeg from uclouvain. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS 4.0)6.6Medium
Exploit odds (30 days)0.7%top 48.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | openjpeg2 | 2.5.2-4.el10_0.1 | ALSA-2025:13944 |
| AlmaLinux:10 | openjpeg2-devel | 2.5.2-4.el10_0.1 | ALSA-2025:13944 |
| AlmaLinux:10 | openjpeg2-tools | 2.5.2-4.el10_0.1 | ALSA-2025:13944 |
| Alpine:v3.21 | openjpeg | 2.5.4-r0 | ALPINE-CVE-2025-54874 |
| Alpine:v3.22 | openjpeg | 2.5.4-r0 | ALPINE-CVE-2025-54874 |
| Alpine:v3.23 | openjpeg | 2.5.3-r1 | ALPINE-CVE-2025-54874 |
| Alpine:v3.24 | openjpeg | 2.5.3-r1 | ALPINE-CVE-2025-54874 |
| Alpine:v3.23 | qt6-qtwebengine | 6.9.2-r1 | ALPINE-CVE-2025-54874 |
| Alpine:v3.24 | qt6-qtwebengine | 6.9.2-r1 | ALPINE-CVE-2025-54874 |
| Debian:13 | openjpeg2 | 2.5.3-2.1~deb13u1 | DEBIAN-CVE-2025-54874 |
| Debian:14 | openjpeg2 | 2.5.3-2.1 | DEBIAN-CVE-2025-54874 |
| Rocky Linux:10 | openjpeg2 | 0:2.5.2-4.el10_0.1 | RLSA-2025:13944 |
| Ubuntu:22.04:LTS | blender | no fix listed | UBUNTU-CVE-2025-54874 |
| Ubuntu:24.04:LTS | blender | no fix listed | UBUNTU-CVE-2025-54874 |
| Ubuntu:25.10 | blender | no fix listed | UBUNTU-CVE-2025-54874 |
| Ubuntu:26.04:LTS | blender | no fix listed | UBUNTU-CVE-2025-54874 |
| Ubuntu:26.10 | blender | no fix listed | UBUNTU-CVE-2025-54874 |
| Ubuntu:22.04:LTS | insighttoolkit4 | no fix listed | UBUNTU-CVE-2025-54874 |
| Ubuntu:22.04:LTS | openjpeg2 | 2.4.0-6ubuntu0.4 | USN-7757-1 |
| Ubuntu:24.04:LTS | openjpeg2 | 2.5.0-2ubuntu0.4 | USN-7757-1 |
| Ubuntu:25.10 | openjpeg2 | 2.5.3-2.1 | UBUNTU-CVE-2025-54874 |
| Ubuntu:26.04:LTS | openjpeg2 | 2.5.3-2.1 | UBUNTU-CVE-2025-54874 |
| Ubuntu:25.10 | qtwebengine-opensource-src | no fix listed | UBUNTU-CVE-2025-54874 |
| Ubuntu:26.10 | qtwebengine-opensource-src | no fix listed | UBUNTU-CVE-2025-54874 |
| Ubuntu:25.10 | texmaker | no fix listed | UBUNTU-CVE-2025-54874 |
| Ubuntu:26.04:LTS | texmaker | no fix listed | UBUNTU-CVE-2025-54874 |
| Ubuntu:26.10 | texmaker | no fix listed | UBUNTU-CVE-2025-54874 |
Affected products (as reported)
Weakness: CWE-457 · Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
References
- https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d x_refsource_CONFIRM
- https://github.com/uclouvain/openjpeg/pull/1573 x_refsource_MISC
- https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV x_refsource_MISC