[ MDVSA-2013:160 ] phpmyadmin

Type securityvulns
Reporter Securityvulns
Modified 2013-05-06T00:00:00



Mandriva Linux Security Advisory MDVSA-2013:160 http://www.mandriva.com/en/support/security/

Package : phpmyadmin Date : May 3, 2013 Affected: Business Server 1.0

Problem Description:

Updated phpmyadmin package fixes security vulnerabilities:

In some PHP versions, the preg_replace\(\) function can be tricked into executing arbitrary PHP code on the server. This is done by passing a crafted argument as the regular expression, containing a null byte. phpMyAdmin does not correctly sanitize an argument passed to preg_replace\(\) when using the Replace table prefix feature, opening the way to this vulnerability (CVE-2013-3238).

phpMyAdmin can be configured to save an export file on the web server, via its SaveDir directive. With this in place, it's possible, either via a crafted filename template or a crafted table name, to save a double extension file like foobar.php.sql. In turn, an Apache webserver on which there is no definition for the MIME type sql (the default) will treat this saved file as a .php script, leading to remote code execution (CVE-2013-3239).


http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3238 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-3239 https://wiki.mageia.org/en/Support/Advisories/MGASA-2013-0133

Updated Packages:

Mandriva Business Server 1/X86_64: d78888a27ad48ca81ce02179da8bb0bc mbs1/x86_64/phpmyadmin- 4a829064432e63a653c9cca52236334e mbs1/SRPMS/phpmyadmin-

To upgrade automatically use MandrivaUpdate or urpmi. The verification of md5 checksums and GPG signatures is performed automatically for you.

All packages are signed by Mandriva for security. You can obtain the GPG public key of the Mandriva Security Team by executing:

gpg --recv-keys --keyserver pgp.mit.edu 0x22458A98

You can view other update advisories for Mandriva Linux at:


If you want to report vulnerabilities, please contact


Type Bits/KeyID Date User ID pub 1024D/22458A98 2000-07-10 Mandriva Security Team <security*mandriva.com> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux)

iD8DBQFRg4+pmqjQ0CJFipgRAp5iAKC+oK84BQEO1J/8bO3BYFtEig+LbACePE4/ Bmb+BhEPMBhki/IJAbt5bMk= =apDQ -----END PGP SIGNATURE-----