Bringing MySQL to the web


Announcement-ID: PMASA-2010-4

Date: 2010-08-20


Insufficient output sanitizing when generating configuration file.


The setup script used to generate configuration can be fooled using a crafted POST request to include arbitrary PHP code in generated configuration file. Combined with the ability to save files on the server, this can allow unauthenticated users to execute arbitrary PHP code.


We consider this vulnerability to be critical.

Mitigation factor

Additional steps from administrator are required to actually exploit this issue (a web server writable config directory has to be created).

Affected Versions

For 2.11.x: versions before

Unaffected Versions

Branch 3.x is not affected by this.


Upgrade to phpMyAdmin or apply the patch listed below.


Thanks to Takeshi Terada of Mitsui Bussan Secure Directions, Inc., who has discovered this issue and reported it to us. See the reported bug for more details.

Assigned CVE ids: CVE-2010-3055

CWE ids: CWE-661 CWE-116


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

More information

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