phpMyAdmin Remote Code Execution
Impact
phpMyAdmin 3.5.x before 3.5.8 and 4.x before 4.0.0-rc3, when a SaveDir directory is configured, allows remote authenticated users to execute arbitrary code by using a double extension in the filename of an export file, leading to interpretation of this file as an executable file by the Apache HTTP Server, as demonstrated by a .php.sql filename.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 3.5.0 before 3.5.8.1Ecosystem versions | 3.5.8.1 |
Version evidence: OSV · GHSA-gg36-9346-9qx9
View original version evidence (0 explicit versions)
Original source description
phpMyAdmin 3.5.x before 3.5.8 and 4.x before 4.0.0-rc3, when a SaveDir directory is configured, allows remote authenticated users to execute arbitrary code by using a double extension in the filename of an export file, leading to interpretation of this file as an executable file by the Apache HTTP Server, as demonstrated by a .php.sql filename.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2013-3239
- Patch github.com/phpmyadmin/phpmyadmin/commit/1f6bc0b707002e26cab216b9e57b4d5de764de48
- Patch github.com/phpmyadmin/phpmyadmin/commit/d3fafdfba0807068196655e9b6d16c5d1d3ccf8a
- Source reference github.com/phpmyadmin/phpmyadmin
- Source reference lists.fedoraproject.org/pipermail/package-announce/2013-May/104725.html
- Source reference lists.fedoraproject.org/pipermail/package-announce/2013-May/104770.html
- Source reference lists.fedoraproject.org/pipermail/package-announce/2013-May/104936.html
- Source reference lists.opensuse.org/opensuse-updates/2013-06/msg00181.html
- Security advisory www.phpmyadmin.net/home_page/security/PMASA-2013-3.php