CVE-2025-54874 Details
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.
A heap buffer write vulnerability has been identified in OpenJPEG versions through 2.5.3. The issue arises in the 'opj_jp2_read_header' function, where an uninitialized pointer can lead to an out-of-bounds write in heap memory. This occurs when the data stream is too short and the image pointer is not properly initialized before the header is read.
Users can upgrade to OpenJPEG versions 2.5.4 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d | [email protected] | Patch |
| https://github.com/uclouvain/openjpeg/pull/1573 | [email protected] | Third Party Advisory |
| https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-457 | Use of Uninitialized Variable | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| uclouvain openjpeg | <= 2.5.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 26, 2025 | CVE Modified | [email protected] |
| Sep 12, 2025 | Initial Analysis | [email protected] |
| Aug 5, 2025 | New CVE Received | [email protected] |