Description
Stack-based buffer overflow in the yyerror function in lib/cgraph/scan.l in Graphviz 2.34.0 allows remote attackers to have unspecified impact via a long line in a dot 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 | graphviz | 2.26.3-16 | — |
| Debian 13 | graphviz | 2.26.3-16 | — |
| Debian 12 | graphviz | 2.26.3-16 | — |
| Debian 7 | graphviz | 2.26.3-14+deb7u1 | DSA-2843-1 |
| Debian 6.0 | graphviz | 2.26.3-5+squeeze2 | DSA-2843-1 |
Advisories 1
- DSA-2843-1 graphviz - buffer overflow Debian Security (DSA / DLA) · Mar 9, 2026
References
- MDVSA-2014:024 vendor-advisory
- 64674 vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=1049165
- GLSA-201702-06 vendor-advisory
- https://github.com/ellson/graphviz/commit/7aaddf52cd98589fb0c3ab72a393f8411838438a
- graphviz-yyerror-bo(90085) vdb-entry
- [oss-security] 20140107 CVE Request: graphviz: stack-based buffer overflow in yyerror() mailing-list
- DSA-2843 vendor-advisory
- https://bugs.gentoo.org/show_bug.cgi?id=497274
- [oss-security] 20140107 Re: CVE Request: graphviz: stack-based buffer overflow in yyerror() mailing-list
- 55666 third-party-advisory
- 56244 third-party-advisory