Use of Uninitialized Variable Affecting openjpeg2 package, versions <2.5.3-2.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.64% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2510-OPENJPEG2-15019700
  • published17 Jan 2026
  • disclosed5 Aug 2025

Introduced: 5 Aug 2025

CVE-2025-54874  (opens in a new tab)
CWE-457  (opens in a new tab)

How to fix?

Upgrade Ubuntu:25.10 openjpeg2 to version 2.5.3-2.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream openjpeg2 package and not the openjpeg2 package as distributed by Ubuntu. See How to fix? for Ubuntu:25.10 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1