CVE-2026-77652
Last modified
CVE-2026-77652 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
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).
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| GNOME | Dia | <= 0.98+git20260221-1 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-77652?
How severe is CVE-2026-77652?
How do I fix CVE-2026-77652?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-77647SPIP before 4.4.20 allows unauthenticated remote attackers t…9.8
- CVE-2026-77648In OpenStack Glance through 32.0.0, the /v2/tasks API accept…2.2
- CVE-2026-77649The internment crate 0.8.7 for Rust can trigger execution of…9.8
- CVE-2026-7765Incorrect authorization in the User Messages dashboard widge…5.3
- CVE-2026-77650The append-only-vec crate 0.1.9 for Rust can trigger executi…9.8
- CVE-2026-77651The arrayref crate 0.3.10 for Rust can trigger execution of …9.8
- CVE-2026-77658A stack-based buffer overflow vulnerability exists in the Di…7.8
- CVE-2026-7766Kenik Camera management Panel is vulnerable to Path Traversa…8.3
- CVE-2026-7768@fastify/accepts-serializer cached serializer-selection resu…7.5
- CVE-2026-77680An algorithmic complexity flaw exists in libsoup's HTTP Rang…5.3
- CVE-2026-77681A vulnerability was identified in CodeAstro Online Job Porta…6.3
- CVE-2026-77683A security flaw has been discovered in Comfast CF-N1-S 2.6.0…9.9
Are you affected by CVE-2026-77652?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
