Skip to main content
VulnerabilityPublished Updated

CVE-2026-77652: dia · Heap-based Buffer Overflow Vulnerability Exists

Affects diaSource GCVE Database

0
Compare
Authoritative record:CVE-2026-77652· High 7.8

Not known to be exploited · CVSS 7.8 High.

Data as of 24 Nov 2026, 21:16 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 11% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10diapkg:deb/ubuntu/dia?arch=source&distro=stonkingOther threatsAffected
  • =0.98+git20260221-1
  • =0.98+git20260221-2
  • =0.98+git20260221-3
Fixed in–
Ubuntu 26.04 LTSdiapkg:deb/ubuntu/dia?arch=source&distro=resoluteOther threatsAffected
  • =0.98+git20250902-0ubuntu1
  • =0.98+git20250902-0ubuntu2
  • =0.98+git20260221-1
Fixed in–
Ubuntu 24.04 LTSdiapkg:deb/ubuntu/dia?arch=source&distro=nobleOther threatsAffected
  • 0.97.3+git20220525-5build1 – 0.98+git20240130-1build4
7 affected builds
Fixed in–
Ubuntu 22.04 LTSdiapkg:deb/ubuntu/dia?arch=source&distro=jammyOther threatsAffected
  • =0.97.3+git20160930-9
  • =0.97.3+git20160930-9build1
Fixed in–
Ubuntu 20.04 LTSdiapkg:deb/ubuntu/dia?arch=source&distro=focalOther threatsAffected
  • =0.97.3+git20160930-8.1
  • =0.97.3+git20160930-8.2
  • =0.97.3+git20160930-9
Fixed in–
Ubuntu 18.04 LTSdiapkg:deb/ubuntu/dia?arch=source&distro=bionicOther threatsAffected
  • =0.97.3+git20160930-6
  • =0.97.3+git20160930-7
  • =0.97.3+git20160930-8
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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 × 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).

References

Community reviews

Loading reviews…