Denial of Service Vulnerability in OpenJPEG Package: CVE-2019-12973

openjpeg Updated 02 Oct 2025

Summary

26/06/2019
N/A
Yes i
Medium
5.5

ALPINE-CVE-2019-12973: In OpenJPEG 2.3.1, there is excessive iteration in the opj_t1_encode_cblks function of openjp2/t1.c. Affects openjpeg versions < 2.3.1-r4. Fixed in 2.3.1-r4. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

OpenJPEG is an open-source library for handling JPEG 2000 image compression. It is widely used in various applications for its ability to efficiently encode and decode images. The library supports multiple platforms and is known for its performance and compliance with JPEG 2000 standards. However, it has been found to be vulnerable to a denial of service attack due to excessive iteration in its encoding function, which can be exploited by attackers.

Vulnerability Detail

In OpenJPEG version 2.3.1, a vulnerability exists in the opj_t1_encode_cblks function located in openjp2/t1.c. This flaw allows remote attackers to cause a denial of service by sending a specially crafted BMP file. The excessive iteration in the encoding process can lead to resource exhaustion, making the application unresponsive. This vulnerability is similar to CVE-2018-6616 and has a CVSS score of 5.5, indicating a moderate severity level.

How To Fix

Minimum fixed version

2.3.1-r4

This is the first release that contains the fix.

sudo apk add --upgrade openjpeg

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

Workaround

As a temporary workaround, avoid processing untrusted BMP files until the package is updated to a secure version.

Conclusion

The OpenJPEG library has a vulnerability (CVE-2019-12973) that can lead to denial of service through crafted BMP files. Users are advised to update to the latest patched versions to mitigate this risk. Monitoring tools like Vulert can help keep applications secure against such vulnerabilities.

See every vulnerability recorded for openjpeg →

Share this vulnerability

FAQ

CVE-2019-12973 is a vulnerability in the OpenJPEG library that can lead to denial of service through excessive iteration in the encoding process.

You can use Vulert, which monitors open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

If exploited, this vulnerability can cause the application to become unresponsive, leading to service downtime and potential data loss.

Yes, a patched version of OpenJPEG is available. Users should update to version 2.3.1-r4 or 2.3.1-r5 depending on their Alpine version.

You can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for openjpeg.

How To Fix

Minimum fixed version

2.3.1-r4

This is the first release that contains the fix.

sudo apk add --upgrade openjpeg

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