CVE-2026-116723

FLTK through 1.4.5 Stack Buffer Overflow via Fl_BMP_Image colors_used Field

Published Oct 26, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is a stack‑based buffer overflow in the Fl_BMP_Image::load_bmp_() routine of FLTK versions up to and including 1.4.5. When a BMP or ICO file contains a colors_used value of more than 256, the function writes past the 768‑byte colormap array on the stack. This memory corruption can cause crashes or, if an attacker can control the overwritten data, potentially lead to arbitrary code execution. The flaw is classified as both CWE‑121 (Stack‑Based Buffer Overflow) and CWE‑787 (Out‑of‑Bounds Write).

Affected Systems

Any deployment that links against FLTK 1.4.5 or earlier and uses the Fl_BMP_Image class to load BMP or ICO images is affected. Applications that accept user‑supplied images—such as graphical editors, image viewers, or any software that embeds the FLTK image loader—could process malicious files and trigger the overflow.

Risk and Exploitability

The CVSS score of 8.5 denotes a high severity. EPSS data is not available, and the flaw is not listed in the CISA KEV catalog. Based on the description, it is inferred that no privileged execution is required; an attacker simply needs to supply a crafted BMP/ICO file to an application that invokes the loader. Once the file is processed, the overflow may crash the application or allow code execution, depending on how the corrupted stack is used.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FLTK to a version newer than 1.4.5 where the colors_used field is validated against a 256 limit.
  • If upgrading is not immediately possible, remove or disable all code paths that load BMP/ICO files using Fl_BMP_Image, or replace this image handling with a validated alternative library.
  • If neither upgrading nor disabling image loading is feasible, add input validation to reject BMP files whose colors_used field exceeds 256 before invoking Fl_BMP_Image::load_bmp_().

Generated by OpenCVE AI on October 27, 2026 at 14:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title FLTK through 1.4.5 Stack Buffer Overflow via Fl_BMP_Image colors_used Field
First Time appeared Fltk Project
Fltk Project fltk
Weaknesses CWE-121
CPEs cpe:2.3:a:fltk_project:fltk:*:*:*:*:*:*:*:*
Vendors & Products Fltk Project
Fltk Project fltk
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 5, 2026, 4:58 PM
Reserved
Oct 26, 2026, 8:23 PM
Status
Deferred
Published
Oct 26, 2026, 10:16 PM
Modified
Nov 5, 2026, 5:17 PM
Severity
Important
Public date
Oct 26, 2026, 9:52 PM