Openswan: Insecure temporary file creation — GLSA 200903-18

An insecure temporary file usage has been reported in Openswan, allowing for symlink attacks.

Affected Packages

net-misc/openswan on all architectures
Affected versions < 2.4.13-r2
Unaffected versions >= 2.4.13-r2

Background

Openswan is an implementation of IPsec for Linux.

Description

Dmitry E. Oboukhov reported that the IPSEC livetest tool does not handle the ipseclive.conn and ipsec.olts.remote.log temporary files securely.

Impact

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

Workaround

There is no known workaround at this time.

Resolution

All Openswan users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=net-misc/openswan-2.4.13-r2"

References

Release Date
March 09, 2009

Latest Revision
March 09, 2009: 01

Severity
normal

Exploitable
local

Bugzilla entries