CVE-2017-17480
Critical · 9.8CVSS
9.8
EPSS
5.1%
Published
Dec 8, 2017
CISA due date
—
Cloudanix analysis
A flaw in image handling software can let attackers crash programs or take control of systems simply by sending a specially made file.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow in pgxtovolume function causes out-of-bounds write during JP3D image conversion.
Why it matters to the business
Processing of untrusted JP3D files in affected image pipelines or ML frameworks can lead to service disruption or full system compromise; 98 downstream dependents increase exposure across dependent software ecosystems.
How an attack unfolds
An attacker crafts a malicious JP3D file that triggers the buffer overflow when parsed by the vulnerable pgxtovolume function, resulting in out-of-bounds write that may enable remote code execution or denial of service.
How to fix it
Upgrade affected tensorflow (Bitnami) installations to version 2.1.4 or later; rebuild or replace any custom builds that embed the vulnerable OpenJPEG 2.3.0 library.
How to confirm the fix worked
Verify installed package versions match or exceed the fixed releases; test JP3D conversion paths with known-good and malformed inputs to confirm absence of crashes or unexpected writes.
Typical attack path
- Identify a target application or service that uses vulnerable OpenJPEG to process JP3D images
- Craft a specially formed JP3D file to overflow the stack buffer in pgxtovolume
- Deliver the file via network upload, email attachment, or file share
- Trigger parsing of the file to achieve out-of-bounds write
- Leverage write primitive for code execution or crash the process
How to detect it
Review application logs for crashes or segmentation faults during JP3D file processing; inspect process memory dumps or core files for signs of stack corruption around image conversion routines.
What your security team should do
- Immediately upgrade tensorflow (Bitnami) to 2.1.4 across all environments
- Inventory all applications using OpenJPEG for JP3D support and prioritize updates
- Implement input validation and sandboxing for image processing workflows until patches are applied
- Monitor EPSS and exploit maturity indicators for changes in threat landscape
The record
In OpenJPEG 2.3.0, a stack-based buffer overflow was discovered in the pgxtovolume function in jp3d/convert.c. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly remote code execution.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.10 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.11 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.12 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.13 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.14 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.15 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.16 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.17 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.18 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.19 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.20 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.21 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.22 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.6 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.7 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.8 | openjpeg | 0 | 2.3.0-r1 |
| Alpine:v3.9 | openjpeg | 0 | 2.3.0-r1 |
| Debian:11 | openjpeg2 | 0 | 2.3.0-2 |
| Debian:12 | openjpeg2 | 0 | 2.3.0-2 |
| Debian:13 | openjpeg2 | 0 | 2.3.0-2 |
| Debian:8 | openjpeg2 | 0 | 2.1.0-2+deb8u5 |
| Debian:9 | openjpeg2 | 0 | 2.1.2-1.1+deb9u3 |
| Mageia:6 | openjpeg2 | 0 | 2.2.0-1.3.mga6 |
| SUSE:Linux Enterprise Desktop 12 SP3 | openjpeg2 | 0 | 2.1.0-4.9.1 |
| SUSE:Linux Enterprise Server 12 SP3 | openjpeg2 | 0 | 2.1.0-4.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | openjpeg2 | 0 | 2.1.0-4.9.1 |
| Ubuntu:16.04:LTS | openjpeg2 | 0 | 2.1.2-1.1+deb9u3build0.16.04.1 |
| Ubuntu:18.04:LTS | openjpeg2 | 0 | 2.3.0-2build0.18.04.1 |
| Ubuntu:20.04:LTS | openjpeg2 | 0 | 2.3.1-1ubuntu4 |
| Ubuntu:22.04:LTS | openjpeg2 | 0 | 2.4.0-6 |
Related vulnerabilities
- CVE-2024-56827 A flaw was found in the OpenJPEG project. Also affects openjpeg2
- CVE-2024-56826 A flaw was found in the OpenJPEG project. Also affects openjpeg2
- CVE-2023-39329 A flaw was found in OpenJPEG. Also affects openjpeg2
- CVE-2023-39327 A flaw was found in OpenJPEG. Also affects openjpeg2
- CVE-2023-39328 A vulnerability was found in OpenJPEG similar to CVE-2019-6988. Also affects openjpeg2
- CVE-2016-10506 Division-by-zero vulnerabilities in the functions opj_pi_next_cprl, opj_pi_next_pcrl, and… Also affects openjpeg2
- CVE-2016-9112 Floating Point Exception (aka FPE or divide by zero) in opj_pi_next_cprl function in… Also affects openjpeg2
- CVE-2026-111497 A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli… CWE-787