Cloudanix VulnDB

CVE-2016-10251

High · 7.8

CVSS

7.8

EPSS

2.4%

Published

Mar 15, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in image-handling software can let attackers take over a computer simply by tricking someone into opening a specially made picture file.

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

What it actually does

Integer overflow in jpc_pi_nextcprl allows a crafted JPEG2000 file to trigger use of an uninitialized value, resulting in memory corruption.

Why it matters to the business

Attackers can cause application crashes or arbitrary code execution on systems that process untrusted image files, leading to downtime, data breaches, or full system compromise; the issue affects widely used image libraries in container and graphics toolchains with broad downstream prevalence.

How an attack unfolds

An attacker crafts a malicious JPEG2000 image that triggers the integer overflow during parsing; the victim opens or processes the file with vulnerable JasPer-based software, causing the uninitialized value to be dereferenced and enabling control-flow hijacking or denial of service. Public exploit code is available.

How to fix it

Upgrade JasPer to version 1.900.20 or later; for listed packages apply k3d (Chainguard/Wolfi) 5.6.0-r11, k3d-proxy 5.6.0-r11, k3d-tools 5.6.0-r11, or jasper-software/jasper commit 1f0dfe5a42911b6880a1445f13f6d615ddb55387. Rebuild and redeploy any dependent containers or applications.

How to confirm the fix worked

Verify installed package or library version matches a fixed release; run regression tests with known trigger files; confirm absence of the vulnerable jpc_pi_nextcprl code path via source or binary inspection.

Typical attack path

  1. Generate a specially crafted JPEG2000 file that triggers the integer overflow in jpc_pi_nextcprl
  2. Deliver the malicious file to the target via email, web download, or shared storage
  3. Victim or automated process opens or renders the file using affected JasPer library
  4. Uninitialized value leads to memory corruption and potential code execution or crash

How to detect it

Review application and system logs for crashes or segmentation faults during JPEG2000 parsing; inspect file-processing services for unexpected terminations or memory errors around the time a suspicious image is handled.

What your security team should do

  • Immediately update all affected JasPer instances and rebuild container images using the listed fixed versions
  • Scan build pipelines and dependency graphs for remaining vulnerable jasper packages
  • Block or sandbox untrusted image processing until patches are applied
  • Monitor for new public exploits and update detection rules accordingly

The record

Integer overflow in the jpc_pi_nextcprl function in jpc_t2cod.c in JasPer before 1.900.20 allows remote attackers to have unspecified impact via a crafted file, which triggers use of an uninitialized value.

Affected packages

Ecosystem Package Introduced Fixed
Debian:7 jasper 0 1.900.1-13+deb7u6
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
SUSE:Linux Enterprise Desktop 12 SP1 jasper 0 1.900.14-194.1
SUSE:Linux Enterprise Desktop 12 SP2 jasper 0 1.900.14-194.1
SUSE:Linux Enterprise Server 11 SP4 jasper 0 1.900.14-134.32.1
SUSE:Linux Enterprise Server 12 SP1 jasper 0 1.900.14-194.1
SUSE:Linux Enterprise Server 12 SP2 jasper 0 1.900.14-194.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 jasper 0 1.900.14-194.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 jasper 0 1.900.14-134.32.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 jasper 0 1.900.14-194.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 jasper 0 1.900.14-194.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 jasper 0 1.900.14-134.32.1
SUSE:Linux Enterprise Software Development Kit 12 SP1 jasper 0 1.900.14-194.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 jasper 0 1.900.14-194.1
Ubuntu:14.04:LTS jasper 0 1.900.1-14ubuntu3.4
Ubuntu:16.04:LTS jasper 0 1.900.1-debian1-2.4ubuntu1.1
openSUSE:Tumbleweed jasper 0 2.0.33-1.2

Related vulnerabilities