CVE & CISA-KEV Catalog

CVE-2025-54874

CRITICAL
9.8
CVSS v3
NVD

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.

How to fix

Remediation Available
openjpeg2Debian
Fixed in:2.5.3-2.1~deb13u1CVE-2025-54874
Fixed in:2.5.3-2.1CVE-2025-54874
openjpeg2Rocky
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
openjpeg2Red Hat / RHEL
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
openjpeg2-debuginfoRed Hat / RHEL
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
openjpeg2-debuginfoRocky
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
openjpeg2-debugsourceRed Hat / RHEL
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
openjpeg2-debugsourceRocky
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
openjpeg2-develRed Hat / RHEL
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
openjpeg2-develRocky
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
openjpeg2-toolsRocky
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
openjpeg2-toolsRed Hat / RHEL
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
openjpeg2-tools-debuginfoRocky
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
openjpeg2-tools-debuginfoRed Hat / RHEL
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
Fixed in:0:2.5.2-4.el10_0.1RHSA-2025:13944
libopenjp2-7Ubuntu
Fixed in:2.3.0-2+deb10u2ubuntu0.1~esm5USN-7757-1
Fixed in:2.3.1-1ubuntu4.20.04.4+esm1USN-7757-1
Fixed in:2.4.0-6ubuntu0.4USN-7757-1
Fixed in:2.5.0-2ubuntu0.4USN-7757-1
libopenjp3d7Ubuntu
Fixed in:2.3.0-2+deb10u2ubuntu0.1~esm5USN-7757-1
Fixed in:2.3.1-1ubuntu4.20.04.4+esm1USN-7757-1
Fixed in:2.4.0-6ubuntu0.4USN-7757-1
openjpeg2Ubuntu
Fixed in:2.3.0-2+deb10u2ubuntu0.1~esm5USN-7757-1
Fixed in:2.3.1-1ubuntu4.20.04.4+esm1USN-7757-1
Fixed in:2.4.0-6ubuntu0.4USN-7757-1
Fixed in:2.5.0-2ubuntu0.4USN-7757-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

0.64%probability of exploitation in 30 days
47thpercentile

Moderate risk: more likely to be exploited than 47% of all known CVEs.

References

Third-Party Advisory1

Related Vulnerabilities

Other CWE-457 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-5777High7.5100%KEV + RansomFix
CVE-2009-0901High8.837%--
CVE-2021-40418Critical9.818%--
CVE-2019-11038Medium5.34.3%-Fix
CVE-2021-31435High7.82.8%--
CVE-2021-46570High7.82.1%-Fix

Common questions

How do I fix CVE-2025-54874?

Published advisories record a fix for 16 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2025-54874 being actively exploited?

Not that we know of. CVE-2025-54874 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.64% is the estimated probability that it will be exploited in the next 30 days. That is higher than 47% of all scored CVEs.

How severe is CVE-2025-54874?

CVE-2025-54874 has a CVSS v3 base score of 9.8, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2025-54874 affect?

Published advisories record a fix for openjpeg2 (Debian), openjpeg2 (Rocky), openjpeg2 (Red Hat / RHEL), openjpeg2-debuginfo (Red Hat / RHEL), and 12 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2025-54874
CVE-2025-54874 severity badge

Markdown

[![CVE-2025-54874](https://tridentstack.com/cve/badge/CVE-2025-54874.svg)](https://tridentstack.com/cve/CVE-2025-54874)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-54874"><img src="https://tridentstack.com/cve/badge/CVE-2025-54874.svg" alt="CVE-2025-54874"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-09-26.