The issue is related to the Pillow library's handling of image decoding, specifically in the TiffImagePlugin.py module. A large value in the `SAMPLESPERPIXEL` tag can lead to a denial of service attack, causing memory and runtime exhaustion when setting up the context for image decoding.