Skip to main content

A stack-based buffer overflow vulnerability exists in the Dia diagram editor when processing Network Bus objects from Dia XML project files. (CVE-2026-77658)

0
Medium
Published: 08/26/2026 (08/26/2026, 13:19:00 UTC)
Source: GCVE Database
Product: dia

Description

A stack-based buffer overflow vulnerability exists in the Dia diagram editor when processing Network Bus objects from Dia XML project files. The vulnerability arises because the number of bus handles is read from the file without validating an upper bound, leading to excessive stack allocation and potential stack overflow when moving a bus handle. This can cause a crash (SIGSEGV) and possible corruption of stack frames or return addresses. The issue affects Dia version 0.98.0 and earlier versions containing the vulnerable code. Exploitation requires opening a crafted .dia file and manipulating bus handles.

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

Ubuntu:16.04:LTSmore threats →ghsa
dia
pkg:deb/ubuntu/dia?arch=source&distro=xenial
Affected versions
=0.97.3-1
Ubuntu:18.04:LTSmore threats →ghsa
dia
pkg:deb/ubuntu/dia?arch=source&distro=bionic
Affected versions
=0.97.3+git20160930-6=0.97.3+git20160930-7=0.97.3+git20160930-8
Ubuntu:20.04:LTSmore threats →ghsa
dia
pkg:deb/ubuntu/dia?arch=source&distro=focal
Affected versions
=0.97.3+git20160930-8.1=0.97.3+git20160930-8.2=0.97.3+git20160930-9
Ubuntu:22.04:LTSmore threats →ghsa
dia
pkg:deb/ubuntu/dia?arch=source&distro=jammy
Affected versions
=0.97.3+git20160930-9=0.97.3+git20160930-9build1
Ubuntu:24.04:LTSmore threats →ghsa
dia
pkg:deb/ubuntu/dia?arch=source&distro=noble
Affected versions
=0.97.3+git20220525-5build1=0.97.3+git20220525-5build2=0.97.3+git20220525-5build3=0.98+git20240130-1=0.98+git20240130-1build2=0.98+git20240130-1build3=0.98+git20240130-1build4
Ubuntu:26.10more threats →ghsa
dia
pkg:deb/ubuntu/dia?arch=source&distro=stonking
Affected versions
=0.98+git20260221-1=0.98+git20260221-2=0.98+git20260221-3
Ubuntu:26.04:LTSmore threats →ghsa
dia
pkg:deb/ubuntu/dia?arch=source&distro=resolute
Affected versions
=0.98+git20250902-0ubuntu1=0.98+git20250902-0ubuntu2=0.98+git20260221-1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/17/2026, 23:41:08 UTC

Technical Analysis

The vulnerability (CVE-2026-77658) in Dia occurs in the bus_load() function where the number of bus handles is read from the "bus_handles" attribute without upper bound validation. Later, bus_handle_moved() allocates two arrays on the stack sized by this number using g_alloca(). An attacker can craft a .dia file with a large bus_handles value (e.g., 262144 or higher) causing g_alloca() to allocate more stack space than the thread stack limit, resulting in stack overflow, SIGSEGV, and potential stack frame or return address corruption. The vulnerability requires the victim to open the malicious file and move a bus handle to trigger the overflow. A similar pattern exists in tree.c, suggesting related vulnerabilities may exist in Tree objects. The issue is confirmed on upstream master as of 2026-08-21 and affects multiple specific versions of Dia up to 0.98.0.

Potential Impact

Successful exploitation can cause a stack overflow leading to application crash (SIGSEGV) and potential corruption of stack frames or return addresses, which may allow an attacker to execute arbitrary code or cause denial of service. The attack requires user interaction to open a crafted .dia file and manipulate bus handles. The vulnerability has a CVSS 3.1 score of 7.8, indicating high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid opening untrusted .dia files and refrain from manipulating bus handles in files from untrusted sources. Monitor the upstream Dia project and vendor advisories for official patches or updates addressing this vulnerability.

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

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-77658
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ad3f5762cdf04f656662136

Added to database: 10/17/2026, 22:23:50 UTC

Last enriched: 10/17/2026, 23:41:08 UTC

Last updated: 10/17/2026, 23:41:08 UTC

Views: 3

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