Description
Stack-based buffer overflow in the push_subg function in parser.y (lib/graph/parser.c) in Graphviz 2.20.2, and possibly earlier versions, allows user-assisted remote attackers to cause a denial of service (memory corruption) or execute arbitrary code via a DOT file with a large number of Agraph_t elements.
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.20.2-3 | — |
| Debian 13 | graphviz | 2.20.2-3 | — |
| Debian 12 | graphviz | 2.20.2-3 | — |
References
- GLSA-200811-04 vendor-advisory
- 32186 third-party-advisory
- graphviz-pushsubg-bo(45765) vdb-entry
- http://roeehay.blogspot.com/2008/10/graphviz-buffer-overflow-code-execution.html
- SUSE-SR:2008:023 vendor-advisory
- 31648 vdb-entry
- 20081008 Advisory: Graphviz Buffer Overflow Code Execution mailing-list
- http://bugs.gentoo.org/show_bug.cgi?id=240636
- 4409 third-party-advisory
- 32656 third-party-advisory