CVE-2025-54874: OpenJPEG allows OOB heap memory write in opj_jp2_read_header

Published Aug 5, 2025
·
Updated

OpenJPEG is an open-source JPEG 2000 codec. In OpenJPEG 2.5.3 and earlier, a call to opjjp2readheader may lead to OOB heap memory write when the data stream pstream is too short and pimage is not initialized.

Other sources

OpenJPEG is an open-source JPEG 2000 codec. In OpenJPEG from 2.5.1 through 2.5.3, a call to opjjp2readheader may lead to OOB heap memory write when the data stream pstream is too short and pimage is not initialized.

MITRE

Affected Software

2 affected components
OpenJPEG OpenJPEG<=2.5.3
uclouvain openjpeg<=2.5.3

Event History

Aug 5, 2025
CVE Published
via MITRE·02:33 PM
Data Sourced
via MITRE·02:33 PM
DescriptionWeakness
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-54874?

CVE-2025-54874 has been classified as a high-severity vulnerability due to the potential for out-of-bounds heap memory writes.

2

How can I fix CVE-2025-54874?

To remediate CVE-2025-54874, upgrade to OpenJPEG version 2.5.4 or later, where the vulnerability has been addressed.

3

What types of issues can CVE-2025-54874 cause?

CVE-2025-54874 can lead to application crashes or possible code execution due to the out-of-bounds memory access.

4

Which versions of OpenJPEG are affected by CVE-2025-54874?

OpenJPEG versions 2.5.3 and earlier are affected by CVE-2025-54874.

5

Is there any known exploit for CVE-2025-54874?

As of now, there are no widely publicized exploits specifically targeting CVE-2025-54874.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203