Cloudanix VulnDB

CVE-2016-10249

High · 7.8

CVSS

7.8

EPSS

2.0%

Published

Mar 15, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A problem in image-handling software can let attackers take control of a computer simply by getting a user to open a specially crafted picture file.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Full Compromise
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Integer overflow in jpc_dec_tiledecode triggers heap-based buffer overflow during processing of crafted JPEG2000 image files.

Why it matters to the business

Systems that decode untrusted images using vulnerable JasPer versions face risk of arbitrary code execution; widespread library use in image-handling applications increases exposure across developer and graphics workflows, though low exploit prevalence reduces immediate urgency.

How an attack unfolds

An attacker creates a malicious JPEG2000 image that exploits the integer overflow in tile decoding; the victim application loads the file with the vulnerable library, causing a heap buffer overflow that allows code execution in the context of the processing process.

How to fix it

Upgrade jasper-software/jasper to commit 988f8365f7d8ad8073b6786e433d34c553ecf568 or later; update affected Grafana deployments to the fixed package version that incorporates the patched library.

How to confirm the fix worked

Verify installed JasPer version or commit hash against the fixed commit; reprocess known-good and test images to confirm absence of overflow conditions; review dependency manifests for outdated jasper packages.

Typical attack path

  1. Craft a JPEG2000 image file that triggers the integer overflow in jpc_dec_tiledecode
  2. Deliver the malicious image via email, web download, or file share
  3. Victim application or service processes the image using the vulnerable JasPer library
  4. Integer overflow leads to heap buffer overflow and attacker-controlled code execution

How to detect it

Monitor application logs for abnormal terminations or memory errors during JPEG2000 decoding; inspect process crash dumps for heap corruption patterns around jpc_dec functions; review file-processing audit trails for recently introduced image files from untrusted sources.

What your security team should do

  • Prioritize patching JasPer library in all image-processing pipelines to the fixed commit
  • Inventory applications and containers that depend on jasper and schedule upgrades
  • Implement content-type validation and sandboxing for untrusted image handling until patches are applied

The record

Integer overflow in the jpc_dec_tiledecode function in jpc_dec.c in JasPer before 1.900.12 allows remote attackers to have unspecified impact via a crafted image file, which triggers a heap-based buffer overflow.

Affected packages

Ecosystem Package Introduced Fixed
Debian:7 jasper 0 1.900.1-13+deb7u5
Debian:8 jasper 0 1.900.1-debian1-2.4+deb8u3
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
Ubuntu:14.04:LTS jasper 0 1.900.1-14ubuntu3.4
Ubuntu:16.04:LTS jasper 0 1.900.1-debian1-2.4ubuntu1.1

Related vulnerabilities