Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openjpeg-2.1.2 Heap Buffer Overflow Vulnerability due to Insufficient check #862

twelveand0 opened this issue Nov 2, 2016 · 1 comment


Copy link

@twelveand0 twelveand0 commented Nov 2, 2016


I have found a vulnerability in openjpeg-2.1.2 (an open-source JPEG 2000 codec written in C
language) using AFL ( The vulnerability is a heap buffer overflow
vulnerability, which can cause out-of-bound read. The vulnerability exists in code responsible for
decompressing the input image. The vulnerability is caused by insufficient check: the code have
made sure the parameters of RED channel, GREEN channel and BLUE channel are the same,
however, does not do it for ALPHA channel, which causes the length of alpha buffer is less than the
expected access length. The vulnerability can cause Denial-of-Service and Information Disclosure
and I am not sure whether it can cause RCE.

Analysis and PoC

The detail analysis and poc file can be found in the attachment.


name: twelveand0 @ VARAS of IIE
org: IIE (


I have reported this to RedHat Security Team and they suggested me to report it here before assigning cve id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.