Gentoo Logo

Mono: Insecure temporary file creation


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200611-23 / mono
Release Date November 28, 2006
Latest Revision November 28, 2006: 01
Impact normal
Exploitable local
Package Vulnerable versions Unaffected versions Architecture(s)
dev-lang/mono < >= All supported architectures

Related bugreports: #150264


Mono is vulnerable to linking attacks, potentially allowing a local user to overwrite arbitrary files.

2.  Impact Information


Mono provides the necessary software to develop and run .NET client and server applications.


Sebastian Krahmer of the SuSE Security Team discovered that the System.CodeDom.Compiler classes of Mono create temporary files with insecure permissions.


A local attacker could create links in the temporary file directory, pointing to a valid file somewhere on the filesystem. When an affected class is called, this could result in the file being overwritten with the rights of the user running the script.

3.  Resolution Information


There is no known workaround at this time.


All Mono users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-lang/mono-"

4.  References


Page updated November 28, 2006

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.