Vulnerability Note VU#584436

TWiki vulnerable to arbitrary code execution via CGI session files

Original Release date: 08 Feb 2007 | Last revised: 14 Feb 2007


TWiki fails to protect the CGI session directory, which may allow an attacker to execute arbitrary code with the privileges of the web server.


TWiki is a web-based collaborative publishing environment. TWiki creates CGI session files in the global /tmp directory, which is generally world readable and writable. By creating CGI session files in this directory, an attacker may be able to execute arbitrary code.


An attacker with the ability to create files in the CGI session directory (usually /tmp) may be able to execute arbitrary code with the privileges of the web server.


Apply an update

This issue is addressed in TWikiRelease04x01x01, as specified in TWiki SecurityAlert-CVE-2007-0669.


TWiki SecurityAlert-CVE-2007-0669 suggests several workarounds, including:

  •  Restrict access to the TWiki server on file level and HTTP.
  •  If on a shared host, move TWiki to a dedicated host.
  •  Upgrade to TWikiRelease04x01x01 -- (recommended)
  •  Apply a hotfix indicated below.

Systems Affected (Learn More)

VendorStatusDate NotifiedDate Updated
TWikiAffected-08 Feb 2007
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A N/A



Thanks to Peter Thoeny for reporting this vulnerability.

This document was written by Will Dormann.

Other Information

  • CVE IDs: CVE-2007-0669
  • Date Public: 08 Feb 2007
  • Date First Published: 08 Feb 2007
  • Date Last Updated: 14 Feb 2007
  • Severity Metric: 5.91
  • Document Revision: 7


If you have feedback, comments, or additional information about this vulnerability, please send us email.