cve.bz

CVE-2025-54874 uclouvain openjpeg: Use of Uninitialized Variable

6.6 mediumExploit referenceEPSS 0.7%Fix available

Medium (6.6) in uclouvain openjpeg. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

6.6 medium
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

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-01-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-457 Use of Uninitialized Variable
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-54874 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-54874?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-54874?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-54874 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
uclouvain:openjpegthrough 2.5.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13openjpeg22.5.3-2.1~deb13u1DEBIAN-CVE-2025-54874
Debian14openjpeg22.5.3-2.1DEBIAN-CVE-2025-54874
Ubuntu16.04:LTSblender, texmaker, insighttoolkit4no fix listedUBUNTU-CVE-2025-54874
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTSblender, insighttoolkit4no fix listedUBUNTU-CVE-2025-54874
Ubuntu22.04:LTSopenjpeg22.4.0-6ubuntu0.4USN-7757-1
Ubuntu24.04:LTSblenderno fix listedUBUNTU-CVE-2025-54874
Ubuntu24.04:LTSopenjpeg22.5.0-2ubuntu0.4USN-7757-1
Ubuntu25.10, 26.04:LTSopenjpeg22.5.3-2.1UBUNTU-CVE-2025-54874
Ubuntu25.10, 26.10blender, texmaker, qtwebengine-opensource-srcno fix listedUBUNTU-CVE-2025-54874
Ubuntu26.04:LTSblender, texmakerno fix listedUBUNTU-CVE-2025-54874
UbuntuPro:18.04:LTSopenjpeg22.3.0-2+deb10u2ubuntu0.1~esm5USN-7757-1
UbuntuPro:18.04:LTS, Pro:20.04:LTS, Pro:22.04:LTS and 1 moretexmaker, qtwebengine-opensource-srcno fix listedUBUNTU-CVE-2025-54874
UbuntuPro:20.04:LTSopenjpeg22.3.1-1ubuntu4.20.04.4+esm1USN-7757-1
UbuntuPro:26.04:LTSqtwebengine-opensource-srcno fix listedUBUNTU-CVE-2025-54874
Red Hatenterprise_linux:10.0openjpeg2, openjpeg2-devel, openjpeg2-tools and 3 more0:2.5.2-4.el10_0.1RHSA-2025:13944
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0openjpeg22.5.3-160000.4.1SUSE-SU-2026:21995-1
openSUSELeap 16.0chromium142.0.7444.162-bp160.1.1openSUSE-SU-2025:20076-1
openSUSETumbleweedchromium139.0.7258.66-1.1openSUSE-SU-2025:15421-1
AlmaLinux10openjpeg2, openjpeg2-devel, openjpeg2-tools2.5.2-4.el10_0.1ALSA-2025:13944
Rocky Linux10openjpeg20:2.5.2-4.el10_0.1RLSA-2025:13944
Alpinev3.21, v3.22openjpeg2.5.4-r0ALPINE-CVE-2025-54874
Alpinev3.23, v3.24openjpeg2.5.3-r1ALPINE-CVE-2025-54874
Alpinev3.23, v3.24qt6-qtwebengine6.9.2-r1ALPINE-CVE-2025-54874
Azure Linux2openjpeg2no fix listedAZL-66114
Azure Linux3openjpeg2no fix listedAZL-66090
Alpaquita25, streamopenjpeg2.5.3-r1BELL-CVE-2025-54874

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is Important rather than Moderate because it allows a malformed or truncated data stream to trigger a heap-based out-of-bounds (OOB) write, which directly corrupts memory. Unlike read-based issues or null dereference crashes that typically lead to denial of service, an OOB write has the potential to alter program control flow, leading to arbitrary code execution under certain conditions. The affected pointer p_image is dereferenced without verifying the success of the header parsing routine, and if it's left uninitialized due to a parsing failure, writing to it results in undefined behavior.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10openjpeg2-0:2.5.2-4.el10_0.1Fixed 2025-08-18RHSA-2025:13944
Red Hat Enterprise Linux 6openjpegOut of support scope
Red Hat Enterprise Linux 7openjpegNot affected
Red Hat Enterprise Linux 7openjpeg2Not affected
Red Hat Enterprise Linux 8openjpeg2Not affected
Red Hat Enterprise Linux 9openjpeg2Not affected
Red Hat Enterprise Linux AI (RHEL AI)libpdfiumNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-54874.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

References

Check your stackJSON