← Vulnerability feed

Vulnerability record · CVE-2016-5734 · published 3 July 2016

CVE-2016-5734: phpMyAdmin preg_replace eval modifier allows PHP code execution

Phpmyadmin · Phpmyadmin

phpMyAdmin fails to properly choose delimiters that would prevent use of the preg_replace e (eval) modifier, allowing a crafted string to be evaluated as PHP. This affects 4.0.x before 4.0.10.16, 4.4.x before 4.4.15.7, and 4.6.x before 4.6.3, and is demonstrated through the table search-and-replace implementation. Because phpMyAdmin is a widely deployed web-facing database tool, successful exploitation can hand an attacker code execution in the web server context.

9.8 CVSS 3.0 Critical EPSS 81% · top 0.4% CWE-94 · Code injection
9.8CVSS 3.0 base score, v2 7.5
81%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
12References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityCVSS 9.8 with network reachability, no privileges or interaction required, public exploit code, and very high EPSS make this an urgent remote code execution risk.

What it is

phpMyAdmin fails to properly choose delimiters that would prevent use of the preg_replace e (eval) modifier, allowing a crafted string to be evaluated as PHP. This affects 4.0.x before 4.0.10.16, 4.4.x before 4.4.15.7, and 4.6.x before 4.6.3, and is demonstrated through the table search-and-replace implementation. Because phpMyAdmin is a widely deployed web-facing database tool, successful exploitation can hand an attacker code execution in the web server context.

Impact

An attacker can execute arbitrary PHP code on the host running phpMyAdmin, which typically yields access to database credentials and the underlying server. This can lead to full compromise of the database and the web application.

Attack surface

The flaw is reachable over the network via the phpMyAdmin web interface, specifically through the table search-and-replace functionality. The CVSS vector indicates no privileges and no user interaction are required, so it can be triggered directly by an unauthenticated or minimally authenticated request depending on deployment.

Exploitation

CISA KEV does not list this CVE, but EPSS is very high at 0.81373 (99.6th percentile) and a public Exploit-DB entry (40185) exists, indicating mature public exploitation. No ransomware group usage is documented in the record.

What to do

  • Upgrade phpMyAdmin to 4.0.10.16, 4.4.15.7, 4.6.3 or later; the vendor advisory PMASA-2016-27 and patch commits are the authoritative fix.
  • If immediate upgrade is not possible, restrict network access to phpMyAdmin to trusted management networks or place it behind a VPN.
  • Disable or remove unused phpMyAdmin installations and ensure the search-and-replace feature is not exposed to untrusted users.
  • Apply the Gentoo GLSA 201701-32 guidance if running the Gentoo package.
  • Monitor web server and PHP logs for anomalous preg_replace or eval-related errors following search-and-replace requests.

Detection

  • Review phpMyAdmin access logs for requests to the table search-and-replace endpoint with unusual or crafted replacement strings.
  • Search PHP error logs for preg_replace/eval warnings or fatal errors correlated with phpMyAdmin requests.
  • Hunt for unexpected outbound connections or new processes spawned by the web server user after phpMyAdmin activity.
  • Check for modified PHP files or webshells in web-accessible directories on hosts running affected phpMyAdmin versions.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2016-5734 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2009-1151phpMyAdmin setup.php code injection enables remote PHP executionphpMyAdmin 2.11.x before 2.11.9.5 and 3.x before 3.1.3.1 contains a static code injection flaw in setup.php. The save action lets a remote attacker w…KEVEPSS 97%analysed10.0CVE-2008-7251Phpmyadmin permissions and access controls vulnerabilitylibraries/File.class.php in phpMyAdmin 2.11.x before 2.11.10 creates a temporary directory with 0777 permissions, which has unknown impact and attack…EPSS 2.7%10.0CVE-2008-7252Phpmyadmin vulnerabilitylibraries/File.class.php in phpMyAdmin 2.11.x before 2.11.10 uses predictable filenames for temporary files, which has unknown impact and attack vect…EPSS 2.7%10.0CVE-2007-0203Phpmyadmin vulnerabilityMultiple unspecified vulnerabilities in phpMyAdmin before 2.9.2-rc1 have unknown impact and attack vectors.EPSS 1.9%10.0CVE-2004-1147Phpmyadmin vulnerabilityphpMyAdmin 2.6.0-pl2, and other versions before 2.6.1, with external transformations enabled, allows remote attackers to execute arbitrary commands v…EPSS 12%9.8CVE-2020-22452Phpmyadmin sql injection vulnerabilitySQL Injection vulnerability in function getTableCreationQuery in CreateAddField.php in phpMyAdmin 5.x before 5.2.0 via the tbl_storage_engine or tbl_…EPSS 1.7%9.8CVE-2020-26935phpMyAdmin SearchController SQL injection via search featurephpMyAdmin before 4.9.6 and 5.x before 5.0.3 contains a SQL injection flaw in SearchController's handling of SQL statements in the search feature. An…EPSS 67%analysed9.8CVE-2019-19617Phpmyadmin vulnerabilityphpMyAdmin before 4.9.2 does not escape certain Git information, related to libraries/classes/Display/GitRevision.php and libraries/classes/Footer.ph…EPSS 2.6%

Source: NIST National Vulnerability Database (record CVE-2016-5734), CISA KEV, FIRST EPSS (scores of 2026-09-25). This page is refreshed as NVD updates the record.