Description
FLTK through 1.4.5 contains a stack-based buffer overflow vulnerability in Fl_BMP_Image::load_bmp_() that allows attackers to corrupt stack memory by supplying an oversized BMP colors_used field. Attackers can craft BMP or ICO files with colors_used above 256 to overflow the 768-byte colormap array, causing crashes or potential code execution.
Severity (CVSS)
| Base score | 8.5 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-121 — Stack-based Buffer Overflow
Affected products
| Vendor | Product | Versions |
|---|---|---|
| fltk | fltk | 0 to <=1.4.5 [affected] |
References
- https://github.com/fltk/fltk/issues/1632 (issue-tracking)
- https://github.com/fltk/fltk (product)
- https://github.com/fltk/fltk/commit/3a049d8262dc759cf9737339420e8457e24c0cb1 (patch)
- https://github.com/fltk/fltk/blob/release-1.4.5/src/Fl_BMP_Image.cxx#L255-L265 (technical-description)
- https://hackmd.io/@haindpwn/fltk-bmp-image-stack-heap-overflow (third-party-advisory)
- https://www.vulncheck.com/advisories/fltk-through-1.4.5-stack-buffer-overflow-via-fl-bmp-image-colors-used-field (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 27 Oct 2026 07:01 UTC.