Red Hat Bugzilla – Bug 956398
CVE-2013-3238 phpMyAdmin: remote code execution via preg_replace() (PMASA-2013-2)
Last modified: 2014-03-15 00:30:25 EDT
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.
This vulnerability can be triggered only by someone who logged in to phpMyAdmin, as the usual token protection prevents non-logged-in users to access the required form.
This is fixed via the following commits:
Created phpMyAdmin tracking bugs for this issue
Affects: fedora-all [bug 956403]
Affects: epel-6 [bug 956404]
Created phpMyAdmin3 tracking bugs for this issue
Affects: epel-5 [bug 956405]
phpMyAdmin3-126.96.36.199-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
phpMyAdmin-188.8.131.52-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.