Muttprint: Insecure temporary file usage

Security Team  Contact Address

Updated March 23, 2009

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200903-35 / muttprint
Release Date March 23, 2009
Latest Revision March 23, 2009: 01
Impact normal
Exploitable local
Package Vulnerable versions Unaffected versions Architecture(s)
app-misc/muttprint < 0.72d-r1 >= 0.72d-r1 All supported architectures

Related bugreports: #250554

Synopsis

An insecure temporary file usage in Muttprint allows for symlink attacks.

2.  Impact Information

Background

Muttprint formats the output of mail clients to a good-looking printing using LaTeX.

Description

Dmitry E. Oboukhov reported an insecure usage of the temporary file "/tmp/muttprint.log" in the muttprint script.

Impact

A local attacker could perform symlink attacks to overwrite arbitrary files with the privileges of the user running the application.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All Muttprint users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-misc/muttprint-0.72d-r1"

4.  References