Bringing MySQL to the web


Announcement-ID: PMASA-2011-6

Date: 2011-07-02


Possible code injection in setup script in case session variables are compromised.


An unsanitized key from the Servers array is written in a comment of the generated config. An attacker can modify this key by modifying the SESSION superglobal array. This allows the attacker to close the comment and inject code.


We consider this vulnerability to be non critical.

Affected Versions

The 3.4.3 and earlier versions are affected.

Unaffected Versions

Branch 2.11.x is not affected by this.


Upgrade to phpMyAdmin or or apply the related patch listed below.


This issue was found by Frans Pehrson from Xxor AB. His advisory.

Assigned CVE ids: CVE-2011-2506

CWE ids: CWE-661 CWE-116


The following commits have been made to fix this issue:

The following commits have been made on the 3.3 branch to fix this issue:

More information

For further information and in case of questions, please contact the phpMyAdmin team. Our website is