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)
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
Affected software
pkg:deb/ubuntu/dia?arch=source&distro=xenialpkg:deb/ubuntu/dia?arch=source&distro=bionicpkg:deb/ubuntu/dia?arch=source&distro=focalpkg:deb/ubuntu/dia?arch=source&distro=jammypkg:deb/ubuntu/dia?arch=source&distro=noblepkg:deb/ubuntu/dia?arch=source&distro=stonkingpkg:deb/ubuntu/dia?arch=source&distro=resoluteRun 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.