Upstream information

CVE-2026-77652 at MITRE

Description

A heap-based buffer overflow vulnerability exists in the Dia diagram editor WPG file format importer.

In plug-ins/wpg/wpg-import.c, the WPG import renderer allocates a fixed palette with:

ren->pPal = g_new0(WPGColorRGB, 256);

When handling a WPG_COLORMAP record, the parser reads a start index (i16) and number of colors (iNum16) from the file and reads palette data with:

bRet &= (iNum16 == (int)fread(&ren->pPal[i16], sizeof(WPGColorRGB), iNum16, f));

The only bounds-related check is `if (i16 >= 0 && i16 <= iSize)`, where iSize is the WPG record size-not the palette capacity. There is no validation that i16 is less than 256 or that i16 + iNum16 does not exceed 256.

A malicious WPG file can supply i16=256 and iNum16=264. That causes fread() to write 792 bytes starting at &pPal[256], while the palette buffer is only 768 bytes (256 entries x 3 bytes). This overflows into adjacent heap metadata and can crash Dia (SIGABRT / malloc corruption errors) or, depending on heap layout and exploit primitives, potentially lead to arbitrary code execution.

Exploitation requires convincing a user to open a crafted WPG file via Dia's file dialog, command line, or file association. No special privileges are required to deliver the file to the victim.

Affected component: WPG parser (plug-ins/wpg/wpg-import.c).
Affected versions: all Dia versions containing this code path (reporter tested Dia 0.98+git20260221-1; issue present on upstream master as of 2026-08-21).

SUSE information

Overall state of this security issue: Pending

This issue is currently rated as having important severity.

CVSS v3 Scores
CVSS detail CNA (Fedora Project) SUSE
Base Score 7.8 7.8
Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector Local Local
Attack Complexity Low Low
Privileges Required None None
User Interaction Required Required
Scope Unchanged Unchanged
Confidentiality Impact High High
Integrity Impact High High
Availability Impact High High
CVSSv3 Version 3.1 3.1
SUSE Bugzilla entry: 1276756 [NEW]

No SUSE Security Announcements cross referenced.


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SUSE Linux Enterprise Desktop 15 SP7 dia Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 dia Affected
SUSE Linux Enterprise Server 15 SP7 dia Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP7 dia Affected
SUSE Linux Enterprise Workstation Extension 15 SP7 dia Affected
Products under Long Term Service Pack support and receiving important and critical security fixes.
SUSE Linux Enterprise Server 15 SP4 dia Affected
SUSE Linux Enterprise Server 15 SP5 dia Affected
SUSE Linux Enterprise Server 15 SP6 dia Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP4 dia Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP5 dia Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP6 dia Affected
Products past their end of life and not receiving proactive updates anymore.
SUSE Linux Enterprise Desktop 15 dia Affected
SUSE Linux Enterprise Desktop 15 SP1 dia Affected
SUSE Linux Enterprise Desktop 15 SP2 dia Affected
SUSE Linux Enterprise Desktop 15 SP3 dia Affected
SUSE Linux Enterprise Desktop 15 SP4 dia Affected
SUSE Linux Enterprise Desktop 15 SP5 dia Affected
SUSE Linux Enterprise Desktop 15 SP6 dia Affected
SUSE Linux Enterprise Module for Package Hub 15 SP3 dia Affected
SUSE Linux Enterprise Module for Package Hub 15 SP4 dia Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 dia Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 dia Affected
SUSE Linux Enterprise Server 15 dia Affected
SUSE Linux Enterprise Server 15 SP1 dia Affected
SUSE Linux Enterprise Server 15 SP2 dia Affected
SUSE Linux Enterprise Server 15 SP3 dia Affected
SUSE Linux Enterprise Server for SAP Applications 15 dia Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP1 dia Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP2 dia Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP3 dia Affected
SUSE Linux Enterprise Workstation Extension 15 dia Affected
SUSE Linux Enterprise Workstation Extension 15 SP1 dia Affected
SUSE Linux Enterprise Workstation Extension 15 SP2 dia Affected
SUSE Linux Enterprise Workstation Extension 15 SP3 dia Affected
SUSE Linux Enterprise Workstation Extension 15 SP4 dia Affected
SUSE Linux Enterprise Workstation Extension 15 SP5 dia Affected
SUSE Linux Enterprise Workstation Extension 15 SP6 dia Affected
openSUSE Leap 15.3 dia Affected
openSUSE Leap 15.4 dia Affected
openSUSE Leap 15.5 dia Affected
openSUSE Leap 15.6 dia Affected


SUSE Timeline for this CVE

CVE page created: Wed Aug 26 11:48:15 2026
CVE page last modified: Thu Aug 27 14:10:39 2026