Cloudanix VulnDB

CVE-2016-10506

Medium · 6.5

CVSS

6.5

EPSS

2.9%

Published

Aug 30, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in an image processing tool can make programs crash when they open certain bad image files sent by attackers.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Denial of service
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Remote attackers can trigger a division-by-zero error in the OpenJPEG library's pi.c functions (opj_pi_next_cprl, opj_pi_next_pcrl, opj_pi_next_rpcl) by supplying specially crafted JPEG2000 (J2K) files, resulting in an application crash.

Why it matters to the business

Applications relying on OpenJPEG for image processing may experience unexpected crashes when handling malicious image files, leading to service interruptions and potential data loss in workflows dependent on image decoding.

How an attack unfolds

An attacker crafts a malformed J2K file that causes division by zero in the progression order iteration functions and delivers it to a vulnerable application that processes the file using OpenJPEG.

How to fix it

Upgrade uclouvain/openjpeg to commit d27ccf01c68a31ad62b33d2dc1ba2bb1eeaafe7b or later, and ensure Bitnami WordPress Multisite is updated to version 3.7.33 or newer which includes the fix.

How to confirm the fix worked

Verify the installed OpenJPEG version is 2.2.0 or later, and test image processing with known malformed J2K samples in a controlled environment.

Typical attack path

  1. Craft a malicious J2K file exploiting the division-by-zero conditions
  2. Deliver the file to the target application via network or file upload
  3. Trigger processing of the file in OpenJPEG
  4. Cause application crash and denial of service

How to detect it

Look for application crash logs indicating division by zero or faults in OpenJPEG pi.c functions when processing J2K files.

What your security team should do

  • Prioritize updating OpenJPEG in all affected systems to the listed fixed versions
  • Review and restrict processing of untrusted J2K files until patched
  • Monitor for application crashes related to image decoding

The record

Division-by-zero vulnerabilities in the functions opj_pi_next_cprl, opj_pi_next_pcrl, and opj_pi_next_rpcl in pi.c in OpenJPEG before 2.2.0 allow remote attackers to cause a denial of service (application crash) via crafted j2k files.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 openjpeg2 0 No fix
Debian:11 openjpeg2 0 No fix
Debian:12 openjpeg2 0 No fix
Debian:13 openjpeg2 0 No fix
Ubuntu:14.04:LTS openjpeg 0 No fix
Ubuntu:16.04:LTS ghostscript 0 9.26~dfsg+0-0ubuntu0.16.04.13
Ubuntu:16.04:LTS openjpeg2 0 2.1.2-1.1+deb9u5build0.16.04.1
Ubuntu:18.04:LTS ghostscript 0 9.26~dfsg+0-0ubuntu0.18.04.13
Ubuntu:18.04:LTS openjpeg2 0 2.2.0-1
Ubuntu:Pro:14.04:LTS openjpeg 0 No fix
Ubuntu:Pro:16.04:LTS openjpeg 0 1:1.5.2-3.1ubuntu0.1~esm2
Ubuntu:Pro:16.04:LTS openjpeg2 0 2.1.2-1.1+deb9u6ubuntu0.1~esm1
Ubuntu:Pro:18.04:LTS openjpeg2 0 2.3.0-2ubuntu0.1~esm1

Related vulnerabilities