Bringing MySQL to the web


Announcement-ID: PMASA-2012-2

Date: 2012-03-28


Path disclosure due to missing verification of file presence.


The show_config_errors.php scripts did not validate the presence of the configuration file, so an error message shows the full path of this file, leading to possible further attacks.


We consider this vulnerability to be non critical.

Mitigation factor

For the error messages to be displayed, php.ini's error_reporting must be set to E_ALL and display_errors must be On (these settings are not recommended on a production server in the PHP manual).

Affected Versions

Versions 3.4.x are affected.


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


Thanks to Mateusz Goik from AliantSoft for reporting this issue.

Assigned CVE ids: CVE-2012-1902

CWE ids: CWE-20 CWE-200


The following commits have been made to fix this issue:

More information

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