Vulnerability Note VU#272296

AWStats fails to properly filter user-supplied input

Original Release date: 10 Feb 2005 | Last revised: 21 Feb 2005


A lack of input validation in AWStats may allow a remote attacker to execute arbitrary commands.


AWStats is a Perl CGI script that collects and graphically displays statistics from web, FTP, and mail servers. The configdir parameter, within the Perl script, is supplied user-controlled data and then passed as a parameter to the Perl routine open(). A lack of input validation on the configdir parameter may allow an attacker to compromise a vulnerable server. If an attacker supplies this parameter with arbitrary commands prefixed with the '|' character, those commands will be executed on the server.

Please note that according to public reports, this vulnerability is being actively exploited.


If a remote attacker supplies AWStats with specially crafted input, that attacker may be able to execute arbitrary commands with the privileges of the attacked server process, in most cases user nobody.



This issue has been corrected in AWStats version 6.3. Users are strongly encouraged to upgrade to this version.

Systems Affected (Learn More)

VendorStatusDate NotifiedDate Updated
AWStatsAffected-10 Feb 2005
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



This vulnerability was reported by iDEFENSE.

This document was written by Jeff Gennari.

Other Information

  • CVE IDs: CAN-2005-0116
  • Date Public: 18 Jan 2005
  • Date First Published: 10 Feb 2005
  • Date Last Updated: 21 Feb 2005
  • Severity Metric: 13.39
  • Document Revision: 44


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