CVE-2025-54874: CWE-457: Use of Uninitialized Variable in uclouvain openjpeg
CVE-2025-54874 is a medium severity vulnerability in the open-source JPEG 2000 codec OpenJPEG, versions 2.5.1 through 2.5.3. The issue arises from the use of an uninitialized variable in the function opj_jp2_read_header, which can lead to an out-of-bounds heap memory write when the input data stream is too short and the image pointer is not initialized. This vulnerability could potentially be exploited to cause memory corruption.
AI Analysis
Technical Summary
OpenJPEG versions 2.5.1 through 2.5.3 contain a use of uninitialized variable vulnerability (CWE-457) in the opj_jp2_read_header function. When processing a JPEG 2000 data stream that is shorter than expected, and if the p_image variable is not initialized, the function may perform an out-of-bounds heap write. This memory corruption issue could lead to undefined behavior or potential exploitation. The CVSS 4.0 base score is 6.6 (medium), reflecting local attack vector, low attack complexity, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation of this vulnerability can result in out-of-bounds heap memory writes, potentially causing application crashes or memory corruption. This may lead to denial of service or other unpredictable behavior. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or fix has been provided yet for this vulnerability. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted or malformed JPEG 2000 data streams with affected versions of OpenJPEG.
CVE-2025-54874: CWE-457: Use of Uninitialized Variable in uclouvain openjpeg
Description
CVE-2025-54874 is a medium severity vulnerability in the open-source JPEG 2000 codec OpenJPEG, versions 2.5.1 through 2.5.3. The issue arises from the use of an uninitialized variable in the function opj_jp2_read_header, which can lead to an out-of-bounds heap memory write when the input data stream is too short and the image pointer is not initialized. This vulnerability could potentially be exploited to cause memory corruption.
CVSS v4.0
Score 6.6medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
OpenJPEG versions 2.5.1 through 2.5.3 contain a use of uninitialized variable vulnerability (CWE-457) in the opj_jp2_read_header function. When processing a JPEG 2000 data stream that is shorter than expected, and if the p_image variable is not initialized, the function may perform an out-of-bounds heap write. This memory corruption issue could lead to undefined behavior or potential exploitation. The CVSS 4.0 base score is 6.6 (medium), reflecting local attack vector, low attack complexity, no privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation of this vulnerability can result in out-of-bounds heap memory writes, potentially causing application crashes or memory corruption. This may lead to denial of service or other unpredictable behavior. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or fix has been provided yet for this vulnerability. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted or malformed JPEG 2000 data streams with affected versions of OpenJPEG.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-07-31T17:23:33.473Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 68921990ad5a09ad00e9cbb9
Added to database: 08/05/2025, 14:47:44 UTC
Last enriched: 06/09/2026, 10:43:46 UTC
Last updated: 09/10/2026, 19:36:51 UTC
Views: 226
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.