Skip to main content
EPSS 0.2%top 91%

CVE-2026-77658: Stack-based Buffer Overflow in GNOME Dia

0
High
VulnerabilityCVE-2026-77658cvecve-2026-77658
Published: 08/26/2026 (08/26/2026, 12:10:07 UTC)
Source: CVE Database V5
Vendor/Project: GNOME
Product: Dia

Description

CVE-2026-77658 is a stack-based buffer overflow vulnerability in the GNOME Dia diagram editor affecting versions 0.98.0 and earlier. The flaw occurs when processing Network Bus objects in Dia XML project files, where an attacker-controlled attribute "bus_handles" is used without upper bound validation. This leads to excessive stack allocation causing stack overflow, potential crashes, and possible memory corruption. Exploitation requires the victim to open a crafted .dia file and manipulate bus handles. The same pattern likely affects Tree objects as well. Red Hat has assessed that this vulnerability does not affect any currently supported Red Hat products.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

GNOME

Dia

Affected versions
>=0 <=0.98.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/09/2026, 18:07:50 UTC

Technical Analysis

The vulnerability exists in the bus_load() function of objects/network/bus.c in GNOME Dia, where the number of bus handles is read from the "bus_handles" attribute without validating an upper bound. When a bus handle is moved, bus_handle_moved() allocates two temporary arrays on the stack using g_alloca() based on this unvalidated count. If the count is excessively large (e.g., 262144 or more), this causes stack overflow exceeding typical thread stack limits (around 8 MB on Linux), resulting in a crash (SIGSEGV) and potential stack frame or return address corruption. An attacker can embed a malicious Bus object in a .dia file to trigger this condition when the file is opened and a bus handle is moved. The same unsafe allocation pattern is present in objects/Misc/tree.c, indicating a similar vulnerability via Tree objects. The issue affects Dia 0.98.0 and earlier versions containing this code and is confirmed on upstream master as of August 21, 2026. Red Hat's advisory states no currently supported Red Hat products are affected.

Potential Impact

Successful exploitation can cause a stack overflow leading to application crash (denial of service) and potential memory corruption, which may allow an attacker to execute arbitrary code or bypass security protections. The vulnerability impacts confidentiality, integrity, and availability of the affected system running Dia when opening and manipulating maliciously crafted .dia files.

Mitigation Recommendations

No official patch or fix is currently confirmed. Users should avoid opening untrusted or suspicious .dia project files, especially those containing Network Bus or Tree objects with excessive bus handle counts. Monitor vendor advisories for updates and patches. Red Hat has confirmed no currently supported Red Hat products are affected by this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
fedora
Date Reserved
2026-08-21T04:33:45.481Z
Cvss Version
3.1
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-77658","vendor":"Red Hat"}]

Threat ID: 6a8edaa4acd9273b49da5830

Added to database: 08/26/2026, 12:23:00 UTC

Last enriched: 09/09/2026, 18:07:50 UTC

Last updated: 10/09/2026, 06:48:19 UTC

Views: 71

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses