CVE-2013-3239 phpMyAdmin Remote Code Execution

Medium 4.6 Published Updated

Authenticated users can execute arbitrary code via double-extension filenames in export files when SaveDir is configured.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2013-3239?

CVE-2013-3239 is a medium-severity code injection vulnerability in Phpmyadmin Phpmyadmin, published on 26 Apr 2013. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2013-3239?

2 open source packages ship an affected version, including phpmyadmin/phpmyadmin. It affects 1 product.

PackageAffectedFixed in
phpmyadmin/phpmyadmin PackagistFrom 3.5.03.5.8.1
phpmyadmin/phpmyadmin PackagistFrom 3.5.03.5.8.1

Products include Phpmyadmin Phpmyadmin.

How do I fix CVE-2013-3239?

Upgrade phpmyadmin/phpmyadmin to 3.5.8.1 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2013-3239 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2013-3239 exists.

Public exploit code: 1 Exploit-DB entry.

All Phpmyadmin Phpmyadmin vulnerabilities

Sources

Also known as DEBIAN-CVE-2013-3239, GHSA-gg36-9346-9qx9.

Is CVE-2013-3239 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free