EMF/WMF file handling vulnerabilities — GLSA 200701-07

A truncation error and integer overflows in the EMF/WMF file handling of could be exploited to execute arbitrary code.

Affected packages

app-office/openoffice-bin on all architectures
Affected versions < 2.1.0
Unaffected versions >= 2.1.0
app-office/openoffice on all architectures
Affected versions < 2.0.4
Unaffected versions >= 2.0.4

Background is an open source office productivity suite, including word processing, spreadsheet, presentation, drawing, data charting, formula editing, and file conversion facilities.


John Heasman of NGSSoftware has discovered integer overflows in the EMR_POLYPOLYGON and EMR_POLYPOLYGON16 processing and an error within the handling of META_ESCAPE records.


An attacker could exploit these vulnerabilities to cause heap overflows and potentially execute arbitrary code with the privileges of the user running by enticing the user to open a document containing a malicious WMF/EMF file.


There is no known workaround known at this time.


All binary users should update to version 2.1.0 or later:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=app-office/openoffice-bin-2.1.0"

All users should update to version 2.0.4 or later:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=app-office/openoffice-2.0.4"


Release date
January 12, 2007

Latest revision
January 12, 2007: 01



Bugzilla entries