Description
The IPSEC livetest tool in Openswan 2.4.12 and earlier, and 2.6.x through 2.6.16, allows local users to overwrite arbitrary files and execute arbitrary code via a symlink attack on the (1) ipseclive.conn and (2) ipsec.olts.remote.log temporary files. NOTE: in many distributions and the upstream version, this tool has been disabled.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 5.0 | openswan | 1:2.4.12+dfsg-1.3+lenny1 | DSA-1760-1 |
| Debian 4.0 | openswan | 1:2.4.6+dfsg.2-1.1+etch1 | DSA-1760-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 5 | openswan +1 | 2.6.14-1.el5_3.2 | RHSA-2009:0402 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Openswan 2.4.12/2.6.16 - Insecure Temp File Creation Privilege Escalation EDB-9135 · local · Jul 13, 2009 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- RHSA-2009:0402 Red Hat Security Advisory: openswan security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-1760-1 openswan - denial of service Debian Security (DSA / DLA) · Mar 9, 2026
References
- 34472 third-party-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=460425
- [oss-security] 20081030 CVE requests: tempfile issues for aview, mgetty, openoffice, crossfire mailing-list
- https://bugs.gentoo.org/show_bug.cgi?id=235770
- 20090309 Re: [ GLSA 200903-18 ] Openswan: Insecure temporary file creation mailing-list
- 34182 third-party-advisory
- 20090310 Re: [ GLSA 200903-18 ] Openswan: Insecure temporary file creation mailing-list
- oval:org.mitre.oval:def:10078 vdb-entry signature
- http://dev.gentoo.org/~rbu/security/debiantemp/openswan
- 31243 vdb-entry
- 9135 exploit
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496374
- RHSA-2009:0402 vendor-advisory
- openswan-livetest-symlink(45250) vdb-entry
- DSA-1760 vendor-advisory