CVE-2016-9393
Medium · 5.5CVSS
5.5
EPSS
1.9%
Published
Mar 23, 2017
CISA due date
—
Cloudanix analysis
A bug in an image-handling component can make certain applications crash when they receive a specially made file, temporarily stopping whatever service relies on that application.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw triggers an assertion failure in the jpc_pi_nextrpcl function during processing of a malformed JPEG2000 image stream, resulting in an application crash.
Why it matters to the business
Applications that process image files can be forced offline when they encounter a malicious file, causing service interruptions until restarted.
How an attack unfolds
An attacker creates a specially crafted file that triggers the assertion failure inside the image processing library and then delivers the file to a target application that uses the vulnerable code path.
How to fix it
Upgrade affected packages to the versions that contain the fix: velero-plugin-for-aws (Chainguard) 1.9.1-r1, velero-plugin-for-aws (Wolfi) 1.9.1-r1, velero-plugin-for-aws-compat (Chainguard) 1.9.1-r1, and velero-plugin-for-aws-compat (Wolfi) 1.9.1-r1. Rebuild and redeploy any containers that embed the vulnerable library.
How to confirm the fix worked
Confirm the installed package version matches or exceeds the listed fixed releases, then re-test processing of the previously crashing file to verify the assertion no longer occurs.
Typical attack path
- Generate a malformed input file that reaches the vulnerable function
- Deliver the file to the target system via email, upload, or network share
- Induce the target application to open or parse the file
- Trigger the assertion failure and resulting denial of service
How to detect it
Monitor application and system logs for sudden crashes or assertion failures that occur while parsing image files; correlate with file creation or upload events immediately preceding the crash.
What your security team should do
- Apply the listed package upgrades immediately on all build pipelines and runtime environments
- Add automated dependency scanning to block future vulnerable versions of the image library
- Review image-processing workflows for unnecessary exposure to untrusted files
The record
The jpc_pi_nextrpcl function in jpc_t2cod.c in JasPer before 1.900.17 allows remote attackers to cause a denial of service (assertion failure) via a crafted file.
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
- CVE-2015-5203 Double free vulnerability in the jasper_image_stop_load function in JasPer 1.900.17… Also affects jasper
- CVE-2015-5221 Use-after-free vulnerability in the mif_process_cmpt function in libjasper/mif/mif_cod.c… Also affects jasper
- CVE-2016-8884 The bmp_getdata function in libjasper/bmp/bmp_dec.c in JasPer 1.900.5 allows remote… Also affects jasper
- CVE-2016-9262 Multiple integer overflows in the (1) jas_realloc function in base/jas_malloc.c and (2)… Also affects jasper
- CVE-2016-9387 Integer overflow in the jpc_dec_process_siz function in libjasper/jpc/jpc_dec.c in JasPer… Also affects jasper
- CVE-2016-9389 The jpc_irct and jpc_iict functions in jpc_mct.c in JasPer before 1.900.14 allow remote… Also affects jasper
- CVE-2016-9392 The calcstepsizes function in jpc_dec.c in JasPer before 1.900.17 allows remote attackers… Also affects jasper
- CVE-2016-8885 The bmp_getdata function in libjasper/bmp/bmp_dec.c in JasPer before 1.900.9 allows… Also affects jasper