Moderate Vulnerability in OpenJPEG2: Heap Buffer Overflow Issues

openjpeg2 Updated 02 Oct 2025

Summary

13/05/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:7309: Moderate: openjpeg2 security update. Affects openjpeg2 versions < 2.4.0-8.el9. Fixed in 2.4.0-8.el9. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

OpenJPEG is an open-source library designed for reading and writing image files in the JPEG2000 format. It is widely used in various applications due to its efficient handling of image data and support for advanced features. However, recent security assessments have revealed vulnerabilities within the library that could potentially compromise the integrity and security of applications relying on it.

Vulnerability Detail

The OpenJPEG library has been identified to have two critical heap buffer overflow vulnerabilities. The first, CVE-2024-56826, occurs in the color handling component of the library, specifically in the bin/common/color.c file. The second, CVE-2024-56827, is found in the j2k.c file within the lib/openjp2 directory. These vulnerabilities can lead to arbitrary code execution, allowing attackers to exploit the affected applications, potentially leading to data breaches or system compromise.

How To Fix

Minimum fixed version

2.4.0-8.el9

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

Currently, there are no specific workarounds mentioned for these vulnerabilities. The best course of action is to apply the security updates as soon as they are available.

Conclusion

The OpenJPEG2 library has critical vulnerabilities that need immediate attention. Users are advised to update to the patched version to mitigate risks associated with heap buffer overflows. Regular monitoring and prompt updates are essential to maintain the security of applications utilizing this library.

See every vulnerability recorded for openjpeg2 →

Share this vulnerability

FAQ

OpenJPEG is an open-source library that allows for the reading and writing of JPEG2000 image files, providing efficient image handling and advanced features.

Heap buffer overflow vulnerabilities occur when a program writes more data to a buffer located on the heap than it can hold, potentially allowing attackers to execute arbitrary code.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By simply providing a manifest file like package-lock.json, you can check for vulnerabilities without needing to install any software.

If immediate updates are not possible, ensure that your application is not exposed to untrusted inputs and monitor for any suspicious activity until the update can be applied.

For detailed information about the vulnerabilities, including CVSS scores and acknowledgments, refer to the CVE pages linked in the advisory.

Related vulnerabilities

Recent vulnerabilities recorded for openjpeg2.

How To Fix

Minimum fixed version

2.4.0-8.el9

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