Gentoo Logo

phpMyAdmin: Multiple vulnerabilities


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200407-22 / dev-db/phpmyadmin
Release Date July 29, 2004
Latest Revision May 22, 2006: 02
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
dev-db/phpmyadmin <= 2.5.7 >= 2.5.7_p1 All supported architectures

Related bugreports: #57890


Multiple vulnerabilities in phpMyAdmin may allow a remote attacker with a valid user account to alter configuration variables and execute arbitrary PHP code.

2.  Impact Information


phpMyAdmin is a popular, web-based MySQL administration tool written in PHP. It allows users to administer a MySQL database from a web-browser.


Two serious vulnerabilities exist in phpMyAdmin. The first allows any user to alter the server configuration variables (including host, name, and password) by appending new settings to the array variables that hold the configuration in a GET statement. The second allows users to include arbitrary PHP code to be executed within an eval() statement in table name configuration settings. This second vulnerability is only exploitable if $cfg['LeftFrameLight'] is set to FALSE.


Authenticated users can alter configuration variables for their running copy of phpMyAdmin. The impact of this should be minimal. However, the second vulnerability would allow an authenticated user to execute arbitrary PHP code with the permissions of the webserver, potentially allowing a serious Denial of Service or further remote compromise.

3.  Resolution Information


The second, more serious vulnerability is only exploitable if $cfg['LeftFrameLight'] is set to FALSE. In the default Gentoo installation, this is set to TRUE. There is no known workaround for the first.


All phpMyAdmin users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge sync

# emerge -pv ">=dev-db/phpmyadmin-2.5.7_p1"
# emerge ">=dev-db/phpmyadmin-2.5.7_p1"

4.  References


Page updated July 29, 2004

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.