Gentoo Logo

mgv: Stack overflow in included gv code


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200703-24 / mgv
Release Date March 26, 2007
Latest Revision March 26, 2007: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
app-text/mgv <= 3.1.5 All supported architectures

Related bugreports: #154645


mgv improperly handles user-supplied data possibly allowing for the execution of arbitrary code.

2.  Impact Information


mgv is a Postscript viewer with a Motif interface, based on Ghostview and GNU gv.


mgv includes code from gv that does not properly boundary check user-supplied data before copying it into process buffers.


An attacker could entice a user to open a specially crafted Postscript document with mgv and possibly execute arbitrary code with the rights of the user running mgv.

3.  Resolution Information


There is no known workaround at this time.


mgv is currently unmaintained, and the mgv website no longer exists. As such, the mgv package has been masked in Portage. We recommend that users select an alternate Postscript viewer such as ghostview or GSview, and unmerge mgv:

Code Listing 3.1: Resolution

# emerge --unmerge "app-text/mgv"

4.  References


Page updated March 26, 2007

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.