# CVE-2017-14151: libopenjp2-7: An off-by-one error was discovered in opj_tcd_code_block_enc_allocate_data in lib/openjp2/tcd.c in OpenJPEG 2.2.0

CVE-2017-14151 is fixed in 8 products on 1 platform, first by libopenjp2-7 2.3.0-1, released September 5, 2017. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2017-14151
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0516
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 5, 2017

## Description

An off-by-one error was discovered in opj_tcd_code_block_enc_allocate_data in lib/openjp2/tcd.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service (heap-based buffer overflow affecting opj_mqc_flush in lib/openjp2/mqc.c and opj_t1_encode_cblk in lib/openjp2/t1.c) or possibly remote code execution.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libopenjp2-7 Ubuntu 18.04.6 LTS (bionic) | 2.3.0-1 | [libopenjp2-7 2.3.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libopenjp2-7-2.3.0-1.md) | Sep 5, 2017 |
| Linux | libopenjp2-tools Ubuntu 18.04.6 LTS (bionic) | 2.3.0-1 | [libopenjp2-tools 2.3.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libopenjp2-tools-2.3.0-1.md) | Sep 5, 2017 |
| Linux | libopenjp3d-tools Ubuntu 18.04.6 LTS (bionic) | 2.3.0-1 | [libopenjp3d-tools 2.3.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libopenjp3d-tools-2.3.0-1.md) | Sep 5, 2017 |
| Linux | libopenjp3d7 Ubuntu 18.04.6 LTS (bionic) | 2.3.0-1 | [libopenjp3d7 2.3.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libopenjp3d7-2.3.0-1.md) | Sep 5, 2017 |
| Linux | libopenjpip-dec-server Ubuntu 18.04.6 LTS (bionic) | 2.3.0-1 | [libopenjpip-dec-server 2.3.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libopenjpip-dec-server-2.3.0-1.md) | Sep 5, 2017 |
| Linux | libopenjpip-server Ubuntu 18.04.6 LTS (bionic) | 2.3.0-1 | [libopenjpip-server 2.3.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libopenjpip-server-2.3.0-1.md) | Sep 5, 2017 |
| Linux | libopenjpip-viewer Ubuntu 18.04.6 LTS (bionic) | 2.3.0-1 | [libopenjpip-viewer 2.3.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libopenjpip-viewer-2.3.0-1.md) | Sep 5, 2017 |
| Linux | libopenjpip7 Ubuntu 18.04.6 LTS (bionic) | 2.3.0-1 | [libopenjpip7 2.3.0-1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libopenjpip7-2.3.0-1.md) | Sep 5, 2017 |

---

Data as of 2026-11-07T06:34:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo
