Critical Security Update for OpenJPEG2: Out-of-Bounds Heap Memory Write Vulnerability

openjpeg2 Updated 02 Oct 2025

Summary

18/08/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:13944: Important: openjpeg2 security update. Affects openjpeg2 versions < 2.5.2-4.el10_0.1. Fixed in 2.5.2-4.el10_0.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

OpenJPEG is an open-source library designed for reading and writing image files in the JPEG2000 format. It provides essential functionalities for image processing and is widely used in various applications that require high-quality image compression. The library is known for its efficiency and flexibility, making it a popular choice among developers. However, it has recently been identified that certain versions of OpenJPEG are susceptible to a critical vulnerability that could lead to severe security implications.

Vulnerability Detail

The vulnerability identified as CVE-2025-54874 is an out-of-bounds (OOB) heap memory write issue within the OpenJPEG library. This flaw allows an attacker to exploit the library by manipulating input data, potentially leading to arbitrary code execution or crashing the application. The vulnerability originates from improper handling of memory allocation, which can be exploited if an attacker crafts a specific JPEG2000 file. The ramifications of this vulnerability are significant, as it could compromise the integrity and confidentiality of the affected systems.

How To Fix

Minimum fixed version

2.5.2-4.el10_0.1

This is the first release that contains the fix.

sudo dnf update openjpeg2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can avoid using the vulnerable versions of the OpenJPEG library until the update is applied. Ensure that any applications relying on OpenJPEG are configured to handle image files safely and do not process untrusted input.

Conclusion

In summary, the OpenJPEG library has a critical vulnerability that requires immediate attention. Users are advised to update to the patched version to mitigate risks associated with CVE-2025-54874. Regular monitoring and prompt updates are essential to maintain the security of applications relying on this library.

See every vulnerability recorded for openjpeg2 →

Share this vulnerability

FAQ

OpenJPEG is an open-source library used for reading and writing JPEG2000 image files, known for its efficiency and flexibility.

CVE-2025-54874 refers to a critical out-of-bounds heap memory write vulnerability found in the OpenJPEG library.

Exploitation of this vulnerability can lead to arbitrary code execution, potentially compromising the security of your application and its data.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to use the Vulert playground without signup.

If immediate updates are not possible, ensure that your applications do not process untrusted JPEG2000 files and consider implementing additional security measures.

Related vulnerabilities

Recent vulnerabilities recorded for openjpeg2.

How To Fix

Minimum fixed version

2.5.2-4.el10_0.1

This is the first release that contains the fix.

sudo dnf update openjpeg2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback