CVE-2025-54874 OpenJPEG allows OOB heap memory write in opj_jp2_read_header
MediumCVSS 6.6
EPSS 0.66%
- Published
- Updated
- Exploit status
- No public exploit known
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 products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/openjpeg2(Debian:13) | < 2.5.3-2.1~deb13u1 | 2.5.3-2.1~deb13u1 |
| debian/openjpeg2(Debian:13) | = 2.5.3-2 | No fix listed |
| debian/openjpeg2(Debian:14) | < 2.5.3-2.1 | 2.5.3-2.1 |
| debian/openjpeg2(Debian:14) | = 2.5.3-2 | No fix listed |
| debian/openjpeg2(Debian:14) | = 2.5.3-2.1~deb13u1 | No fix listed |
| debian/openjpeg2(Debian:14) | = 2.5.3-2.1~deb13u2 | No fix listed |
| uclouvain openjpeg | = >= 2.5.1, <= 2.5.3 | No fix listed |
| ubuntu/blender(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/insighttoolkit4(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/qtwebengine-opensource-src(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/texmaker(Ubuntu:22.04) | All versions | No fix listed |
| alpine/openjpeg(Alpine:v3.21) | < 2.5.4-r0 | 2.5.4-r0 |
| alpine/openjpeg(Alpine:v3.22) | < 2.5.4-r0 | 2.5.4-r0 |
| alpine/openjpeg(Alpine:v3.23) | < 2.5.3-r1 | 2.5.3-r1 |
| alpine/openjpeg(Alpine:v3.24) | < 2.5.3-r1 | 2.5.3-r1 |
| alpine/qt6-qtwebengine(Alpine:v3.23) | < 6.9.2-r1 | 6.9.2-r1 |
| alpine/qt6-qtwebengine(Alpine:v3.24) | < 6.9.2-r1 | 6.9.2-r1 |
| ubuntu/blender(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/qtwebengine-opensource-src(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/texmaker(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/blender(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/openjpeg2(Ubuntu:26.04) | < 2.5.3-2.1 | 2.5.3-2.1 |
| ubuntu/texmaker(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/qtwebengine-opensource-src(Ubuntu:26.04) | All versions | No fix listed |
| uclouvain openjpeg | <= 2.5.3 | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/blender(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/qtwebengine-opensource-src(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/texmaker(Ubuntu:26.10) | All versions | No fix listed |
References
- Debian Security Tracker CVE-2025-54874 vendor-advisory
- https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d patch
- https://github.com/uclouvain/openjpeg/pull/1573 third-party-advisory
- https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV exploit third-party-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7757-1 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking