Description
Format string vulnerability in Dia 0.94 allows user-assisted attackers to cause a denial of service (crash) and possibly execute arbitrary code by triggering errors or warnings, as demonstrated via format string specifiers in a .bmp filename. NOTE: the original exploit was demonstrated through a command line argument, but there are other mechanisms for input that are automatically processed by Dia, such as a crafted .dia file.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | dia | 0.95.0-4 | — |
| Debian 13 | dia | 0.95.0-4 | — |
| Debian 12 | dia | 0.95.0-4 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | dia | 1:0.94-5.7.1 | RHSA-2006:0541 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | dia | 0.97.3-11.1 | openSUSE-SU-2024:10716-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Dia 0.8x/0.9x - Filename Remote Format String EDB-27903 · dos · May 23, 2006 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- RHSA-2006:0541 Red Hat Security Advisory: dia security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- openSUSE-SU-2024:10716-1 dia-0.97.3-11.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- 18078 vdb-entry
- RHSA-2006:0541 vendor-advisory
- 20513 third-party-advisory
- 20422 third-party-advisory
- 20199 third-party-advisory
- oval:org.mitre.oval:def:11224 vdb-entry signature
- SUSE-SR:2006:012 vendor-advisory
- 1016203 vdb-entry
- http://kandangjamur.net/tutorial/dia.txt
- 20254 third-party-advisory
- 25699 vdb-entry
- MDKSA-2006:093 vendor-advisory
- ADV-2006-1908 vdb-entry
- http://bugzilla.gnome.org/show_bug.cgi?id=342111
- 20339 third-party-advisory
- 20060506 DIA file name handling format string mailing-list
- USN-286-1 vendor-advisory
- GLSA-200606-03 vendor-advisory
- 20457 third-party-advisory