CVE-2017-9782
Medium · 5.5CVSS
5.5
EPSS
1.6%
Published
Jun 21, 2017
CISA due date
—
Cloudanix analysis
A flaw in image processing software can let attackers crash programs simply by supplying a specially made picture file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer over-read in the jp2_decode function triggered by a specially crafted JP2 image, resulting in application crash.
Why it matters to the business
Attackers can crash applications that process untrusted images, causing service outages and potential loss of availability for image-handling workflows.
How an attack unfolds
An attacker supplies a malicious JP2 image to any process using the vulnerable JasPer library; the jp2_decode path performs an out-of-bounds read on the heap and terminates the process.
How to fix it
Upgrade the JasPer library to a version that resolves the over-read; for boring-registry-fips (Chainguard) install 0.13.2-r1 or later.
How to confirm the fix worked
Confirm the running binary or container image links against a fixed JasPer build; re-test with the original crafted image to verify the crash no longer occurs.
Typical attack path
- Identify a target application that accepts user-supplied JP2/Jasper images
- Craft a malformed JP2 file that triggers the buffer over-read in jp2_decode
- Deliver the image via upload, email attachment, or network protocol
- Trigger decoding, causing the process to crash
How to detect it
Review application crash logs and core dumps for signs of heap corruption during JP2 decoding; monitor for sudden restarts of image-processing services after receipt of new image files.
What your security team should do
- Apply the listed fixed version of boring-registry-fips immediately
- Inventory all other products that embed JasPer and schedule upgrades
- Add image-processing workloads to the vulnerability scanning pipeline
- Block or sanitize JP2 files at ingress points until patches are deployed
The record
JasPer 2.0.12 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted image, related to the jp2_decode function in libjasper/jp2/jp2_dec.c.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Mageia:7 | jasper | 0 | 2.0.19-1.mga7 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP1 | jasper | 0 | 2.0.14-3.16.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP2 | jasper | 0 | 2.0.14-3.16.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP1 | jasper | 0 | 2.0.14-3.16.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP2 | jasper | 0 | 2.0.14-3.16.1 |
| SUSE:Linux Enterprise Module for Package Hub 15 SP1 | jasper | 0 | 2.0.14-3.16.1 |
| SUSE:Linux Enterprise Server 12 SP5 | jasper | 0 | 1.900.14-195.22.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | jasper | 0 | 1.900.14-195.22.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | jasper | 0 | 1.900.14-195.22.1 |
| Ubuntu:16.04:LTS | jasper | 0 | 1.900.1-debian1-2.4ubuntu1.3 |
| openSUSE:Leap 15.1 | jasper | 0 | 2.0.14-lp151.4.9.1 |
| openSUSE:Leap 15.2 | jasper | 0 | 2.0.14-lp152.7.3.1 |
Related vulnerabilities
- CVE-2024-31744 In Jasper 4.2.2, the jpc_streamlist_remove function in src/libjasper/jpc/jpc_dec.c:2407… Also affects jasper
- CVE-2015-5203 Double free vulnerability in the jasper_image_stop_load function in JasPer 1.900.17… Also affects jasper
- CVE-2016-10249 Integer overflow in the jpc_dec_tiledecode function in jpc_dec.c in JasPer before… Also affects jasper
- CVE-2016-1577 Double free vulnerability in the jas_iccattrval_destroy function in JasPer 1.900.1 and… Also affects jasper
- CVE-2026-92824 A flaw was found in libmodulemd. CWE-125
- CVE-2026-114038 A flaw was found in device-mapper-multipath. CWE-125
- CVE-2026-112896 Pillow is a Python imaging library. CWE-125
- CVE-2026-112278 rdesktop through 1.9.0 contains a heap out-of-bounds read vulnerability in… CWE-125