Skip to main content
EPSS 0.6%top 51%

CVE-2025-54874: CWE-457: Use of Uninitialized Variable in uclouvain openjpeg

0
Medium
VulnerabilityCVE-2025-54874cvecve-2025-54874cwe-457
Published: 08/05/2025 (08/05/2025, 14:33:17 UTC)
Source: CVE Database V5
Vendor/Project: uclouvain
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Affected versions
>=2.5.1 <=2.5.3

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/09/2026, 10:43:46 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses