Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2016-5734 EUVD-2016-6669GHSA-rv57-479x-x4qv

phpMyAdmin Code Injection vulnerability

Published Jul 3, 2016 · Updated Aug 6, 2024 · Assigned by mitre

Description

phpMyAdmin 4.0.x before 4.0.10.16, 4.4.x before 4.4.15.7, and 4.6.x before 4.6.3 does not properly choose delimiters to prevent use of the preg_replace e (aka eval) modifier, which might allow remote attackers to execute arbitrary PHP code via a crafted string, as demonstrated by the table search-and-replace implementation.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 phpmyadmin 4:4.6.3-1 —
Debian 13 phpmyadmin 4:4.6.3-1 —
Debian 12 phpmyadmin 4:4.6.3-1 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS phpmyadmin No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed phpMyAdmin 4.6.5.2-1.1 openSUSE-SU-2024:10054-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 1

GitHub 3 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist phpmyadmin/phpmyadmin >= 4.0.10.0, < 4.0.10.16 4.0.10.16 GHSA-rv57-479x-x4qv
Packagist phpmyadmin/phpmyadmin >= 4.4.15.0, < 4.4.15.7 4.4.15.7 GHSA-rv57-479x-x4qv
Packagist phpmyadmin/phpmyadmin >= 4.6.0, < 4.6.3 4.6.3 GHSA-rv57-479x-x4qv

Advisories 1

References