The issue arises when `gfx.color management.enablev4` is used, leading to improper handling of color profiles during PNG rendering. This can be exploited by remote attackers via a grayscale PNG image, potentially allowing them to obtain sensitive information from process memory or cause a denial of service due to memory corruption.