Cloudanix VulnDB

CVE-2016-9391

High · 7.5

CVSS

7.5

EPSS

4.3%

Published

Mar 23, 2017

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A flaw in an image processing component can let attackers send a specially made picture that shuts down services handling it, causing temporary outages.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Denial of service
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The jpc_bitstream_getbits function in jpc_bs.c triggers an assertion failure when processing a JPEG2000 image containing a very large integer value in the bitstream, causing the process to terminate.

Why it matters to the business

Services that parse untrusted image files can be disrupted by remote attackers sending specially crafted inputs, leading to availability loss without data compromise.

How an attack unfolds

An attacker crafts a JPEG2000 file with an oversized integer in the codestream, delivers it over the network to any service using the vulnerable JasPer library for image decoding, and triggers the assertion to crash the process.

How to fix it

Upgrade affected packages to the fixed versions: nri-haproxy (Chainguard) 3.0.0-r2 or later, nri-haproxy (Wolfi) 3.0.0-r2 or later, nri-haproxy-compat (Chainguard) 3.0.0-r2 or later, and nri-haproxy-compat (Wolfi) 3.0.0-r2 or later. Rebuild and redeploy any containers or images incorporating the updated packages.

How to confirm the fix worked

Verify package versions in running containers or hosts match the fixed releases, then test image decoding with known-good and boundary-case inputs to confirm absence of crashes.

Typical attack path

  1. Identify a target service that accepts or processes JPEG2000 images via the affected library
  2. Generate or obtain a malformed image file containing an excessively large integer value
  3. Transmit the file to the target over an unauthenticated network channel
  4. Observe process termination due to the triggered assertion

How to detect it

Review application and system logs for unexpected process terminations or assertion messages during image processing; correlate with inbound network flows carrying image content around the time of crashes.

What your security team should do

  • Apply the listed package upgrades immediately across all environments
  • Scan container images and build pipelines for any remaining references to pre-3.0.0-r2 versions of the affected packages
  • Implement network-level controls to restrict untrusted image uploads until patches are deployed

The record

The jpc_bitstream_getbits function in jpc_bs.c in JasPer before 2.0.10 allows remote attackers to cause a denial of service (assertion failure) via a very large integer.

Affected packages

Ecosystem Package Introduced Fixed
Mageia:5 jasper 0 1.900.23-1.mga5
Red Hat:enterprise_linux:6::client jasper 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::client jasper-debuginfo 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::client jasper-devel 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::client jasper-libs 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::client jasper-utils 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::computenode jasper 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::computenode jasper-debuginfo 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::computenode jasper-devel 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::computenode jasper-libs 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::computenode jasper-utils 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::server jasper 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::server jasper-debuginfo 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::server jasper-devel 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::server jasper-libs 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::server jasper-utils 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::workstation jasper 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::workstation jasper-debuginfo 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::workstation jasper-devel 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::workstation jasper-libs 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::workstation jasper-utils 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:7::client jasper 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::client jasper-debuginfo 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::client jasper-devel 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::client jasper-libs 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::client jasper-utils 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::computenode jasper 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::computenode jasper-debuginfo 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::computenode jasper-devel 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::computenode jasper-libs 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::computenode jasper-utils 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::server jasper 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::server jasper-debuginfo 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::server jasper-devel 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::server jasper-libs 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::server jasper-utils 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::workstation jasper 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::workstation jasper-debuginfo 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::workstation jasper-devel 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::workstation jasper-libs 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::workstation jasper-utils 0 0:1.900.1-30.el7_3
SUSE:Linux Enterprise Desktop 12 SP2 jasper 0 1.900.14-195.3.1
SUSE:Linux Enterprise Desktop 12 SP3 jasper 0 1.900.14-195.5.1
SUSE:Linux Enterprise Server 11 SP4 jasper 0 1.900.14-134.33.3.1
SUSE:Linux Enterprise Server 12 SP2 jasper 0 1.900.14-195.3.1
SUSE:Linux Enterprise Server 12 SP3 jasper 0 1.900.14-195.5.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 jasper 0 1.900.14-195.3.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 jasper 0 1.900.14-134.33.3.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 jasper 0 1.900.14-195.3.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 jasper 0 1.900.14-195.5.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 jasper 0 1.900.14-134.33.3.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 jasper 0 1.900.14-195.3.1
SUSE:Linux Enterprise Software Development Kit 12 SP3 jasper 0 1.900.14-195.5.1
Ubuntu:14.04:LTS jasper 0 1.900.1-14ubuntu3.5
Ubuntu:16.04:LTS jasper 0 1.900.1-debian1-2.4ubuntu1.2
openSUSE:Tumbleweed jasper 0 2.0.33-1.2

Related vulnerabilities