Vulnerability Note VU#693909

PAM-MySQL contains a double-free vulnerability

Original Release date: 08 Feb 2006 | Last revised: 17 May 2006


PAM-MySQL contains a double-free vulnerability that may allow a remote attacker to execute arbitrary code or cause a denial-of-service condition.


PAM-MySQL provides a Pluggable Authentication Module (PAM) interface to a MySQL database. PAM-MySQL does not securely handle a pointer returned by the pam_get_item() routine, which results in a double-free vulnerability. The vulnerability exists if the following conditions are present:

  1. Two or more PAM modules are stacked.
  2. The PAM-MySQL module is not the first in the stack.
  3. Any of the modules preceding the PAM-MySQL module are not marked as requisite.


If a remote attacker supplies a specially crafted password to a vulnerable PAM-MySQL installation, that attacker may be able to crash the PAM-MySQL process. Note that it may be possible to exploit this vulnerability to execute arbitrary code.


Upgrade PAM-MySQL
Upgrading to PAM-MySQL version 0.6.2 or PAM-MySQL version 0.7pre3 will correct this issue. 

Systems Affected (Learn More)

VendorStatusDate NotifiedDate Updated
Ricoh CorporationNot Affected-17 May 2006
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 Moriyoshi Koizumi.

This document was written by Jeff Gennari.

Other Information

  • CVE IDs: CVE-2006-0056
  • Date Public: 28 Sep 2005
  • Date First Published: 08 Feb 2006
  • Date Last Updated: 17 May 2006
  • Severity Metric: 3.94
  • Document Revision: 35


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