mgv: Stack overflow in included gv code — GLSA 200703-24

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

Affected packages

app-text/mgv on all architectures
Affected versions <= 3.1.5
Unaffected versions

Background

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

Description

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

Impact

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.

Workaround

There is no known workaround at this time.

Resolution

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:

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

References

Release date
March 26, 2007

Latest revision
March 26, 2007: 01

Severity
normal

Exploitable
remote

Bugzilla entries