OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
[ GLSA 200812-02 ] enscript: User-assisted execution of arbitrary code

From: Robert Buchholz (rbugentoo.org)
Date: Tue Dec 02 2008 - 11:28:07 CST


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 200812-02
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: enscript: User-assisted execution of arbitrary code
      Date: December 02, 2008
      Bugs: #243228
        ID: 200812-02

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

Two buffer overflows in enscript might lead to the execution of
arbitrary code.

Background
==========

enscript is a powerful ASCII to PostScript file converter.

Affected packages
=================

    -------------------------------------------------------------------
     Package / Vulnerable / Unaffected
    -------------------------------------------------------------------
  1 app-text/enscript < 1.6.4-r4 >= 1.6.4-r4

Description
===========

Two stack-based buffer overflows in the read_special_escape() function
in src/psgen.c have been reported. Ulf Harnhammar of Secunia Research
discovered a vulnerability related to the "setfilename" command
(CVE-2008-3863), and Kees Cook of Ubuntu discovered a vulnerability
related to the "font" escape sequence (CVE-2008-4306).

Impact
======

An attacker could entice a user or automated system to process
specially crafted input with the special escapes processing enabled
using the "-e" option, possibly resulting in the execution of arbitrary
code.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All enscript users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=app-text/enscript-1.6.4-r4"

References
==========

  [ 1 ] CVE-2008-3863
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-3863
  [ 2 ] CVE-2008-4306
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-4306

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200812-02.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
securitygentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2008 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.5

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iQIcBAABAgAGBQJJNXAsAAoJECaaHo/OfoM54OYP/3flUVWy0k6Ll8qm5jbtx372
ciE2y3EhgWAWG2j25P7YmQVJ+UrqdcvmC5o6u4I71gTtw3PU9w189iuVSn4K4vlX
RxDnQoharliL80gtikl+h7dtndurl/KpJlG+Qdnd2z+YZGIT7UxJ/7Zi940lwPiu
Op2JfDm0FIptFs2bUuBMgAcOyfOgTp1NDR1cKjaHkjbd6xF6ZdVQVzQNl2eqY/C8
7q5ze8ml2WuMSCtudD93OApUFhyNL4yV6NlDmq8mE6gCkRh1Lp8vJurZ7TQyL+eL
DAglM+MrdMZLU4tOzfcWvxe+Y7u3iCoks0Hr6XsNLp+6Y5sTcvZH4j9e0kzA8sjc
3ERGlQxlfJ88gy1OxJmDu+ha86pz3KDs2Z/qZ6ZRcbw4SVU197GTS36WreUnrJAm
+p2DPCNxLGXTkvEOwIZMho9VMPD8Q3uZ9PvM0zgWwE3aUi9vRbzmNeY6LJ9mxs9G
1+7JnYAOzS3DnOBSF7JNey6XyM5cyRR00ZYESqy0Wn6o+dUnhs8q13QpI22I9/Ns
I4+RfFqcawO9DU+X6Aocz4kVbBc2nKlj9HjgM84NiC1RmMeKkhmq8Hj3D35P/aiT
nhxe9uRLZoiz6iJDWSZeZdKBYvBPC7pO8yGEulAkI45FChOBNk78qSU1YaSFkhPM
kQ7y1OaauWcyRwjkYBEu
=Z3Va
-----END PGP SIGNATURE-----