CVE-2016-6609: phpMyAdmin PHP code injection

phpmyadmin/phpmyadmin Updated 02 Oct 2025

Summary

14/05/2022
Yes i
High
8.8

CVE-2016-6609: phpMyAdmin PHP code injection. Affects phpmyadmin/phpmyadmin across 3 version ranges.

>= 4.0, < 4.0.10.17 >= 4.4, < 4.4.15.8 >= 4.6, < 4.6.4

Fixed in 4.0.10.17, 4.4.15.8 or 4.6.4, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2016-6609 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

phpMyAdmin is a popular open-source tool for managing MySQL databases through a web interface. It provides users with a convenient way to perform various database operations such as creating, modifying, and deleting tables, executing SQL queries, and managing user permissions. However, a vulnerability has been discovered in phpMyAdmin that allows for PHP code injection.

Vulnerability Detail

The vulnerability arises from a flaw in the handling of database names in phpMyAdmin. By crafting a specially designed database name, an attacker can execute arbitrary PHP commands through the array export feature. This can lead to unauthorized access, data manipulation, and potentially complete compromise of the affected system. The vulnerability affects all versions of phpMyAdmin 4.6.x (prior to 4.6.4), 4.4.x (prior to 4.4.15.8), and 4.0.x (prior to 4.0.10.17).

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 4.0, < 4.0.10.17 4.0.10.17
    composer require phpmyadmin/phpmyadmin:4.0.10.17
  • >= 4.4, < 4.4.15.8 4.4.15.8
    composer require phpmyadmin/phpmyadmin:4.4.15.8
  • >= 4.6, < 4.6.4 4.6.4
    composer require phpmyadmin/phpmyadmin:4.6.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading phpMyAdmin is not immediately feasible, a temporary workaround is to disable the array export feature. This can be done by modifying the phpMyAdmin configuration to remove or comment out the 'Export' section in the 'libraries/config.default.php' file. However, this workaround should only be considered as a temporary measure, and upgrading to the latest secure version is strongly recommended.

Conclusion

The phpMyAdmin PHP code injection vulnerability (CVE-2016-6609) allows for the execution of arbitrary PHP commands through a specially crafted database name. This can lead to unauthorized access, data manipulation, and potential compromise of the affected system. To mitigate this vulnerability, it is crucial to upgrade phpMyAdmin to the latest secure version (4.6.4, 4.4.15.8, or 4.0.10.17) and regularly apply updates. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for phpmyadmin/phpmyadmin →

Share this vulnerability

FAQ

phpMyAdmin is an open-source tool for managing MySQL databases through a web interface. It provides a user-friendly way to perform various database operations.

The vulnerability allows for PHP code injection, which can lead to unauthorized access, data manipulation, and potential compromise of the affected system.

All versions of phpMyAdmin 4.6.x (prior to 4.6.4), 4.4.x (prior to 4.4.15.8), and 4.0.x (prior to 4.0.10.17) are affected.

Upgrade phpMyAdmin to version 4.6.4 if using 4.6.x, version 4.4.15.8 if using 4.4.x, or version 4.0.10.17 if using 4.0.x. Regularly updating phpMyAdmin is important for applying security patches.

A temporary workaround is to disable the array export feature by modifying the phpMyAdmin configuration. However, upgrading to the latest secure version is strongly recommended.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin/phpmyadmin.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 4.0, < 4.0.10.17 4.0.10.17
    composer require phpmyadmin/phpmyadmin:4.0.10.17
  • >= 4.4, < 4.4.15.8 4.4.15.8
    composer require phpmyadmin/phpmyadmin:4.4.15.8
  • >= 4.6, < 4.6.4 4.6.4
    composer require phpmyadmin/phpmyadmin:4.6.4

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback