FLTK versions through 1.4.5 contain a stack-based buffer overflow vulnerability in the BMP image loading function that can be triggered by crafted BMP or ICO files with an oversized colors_used field. This can lead to stack memory corruption, crashes, or potential code execution. Additionally, there is an integer overflow vulnerability in the same function causing undersized pixel buffer allocation, allowing heap corruption via large image dimensions. These vulnerabilities have a high severity score and are fixed in version 1.3.8-2.oe2203sp4.