Jasper · Jasper · CVE-2021-3272
**Name of the Vulnerable Software and Affected Versions**
JasPer version 2.0.24
**Description**
The issue arises from a heap-based buffer over-read in the `jp2 decode` function, located in `jp2/jp2 dec.c` of the `libjasper` library in JasPer. This occurs when there is an invalid relationship between the number of channels and the number of image components.
**Recommendations**
For JasPer version 2.0.24, consider applying a patch or update that fixes the `jp2 decode` function to prevent the heap-based buffer over-read. As a temporary workaround, restrict the use of the `jp2 decode` function until a patch is available. At the moment, there is no information about a newer version that contains a fix for this vulnerability.