Critical CSRF Vulnerability in phpMyAdmin: SQL Operations at Risk

phpmyadmin Updated 02 Oct 2025

Summary

11/12/2018
N/A
Yes i
High
8.8

CVE-2018-19969: phpMyAdmin 4.7.x and 4.8.x versions prior to 4.8.4 are affected by a series of CSRF flaws. Affects phpmyadmin across 2 version ranges.

< 4:4.9.1+dfsg1-2 >= 9d6ac04ae8cd7064c28c93a6a949cb5324899593, < 56ba19808f020fa8ac63366d450c3928564a91b8

Fixed in 4:4.9.1+dfsg1-2. How to fix ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

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 widely-used open-source tool for managing MySQL databases through a web interface. It allows users to perform various database operations such as creating, modifying, and deleting databases and tables. Despite its powerful features, phpMyAdmin has been found to be vulnerable to a series of Cross-Site Request Forgery (CSRF) flaws, particularly in versions 4.7.x and 4.8.x prior to 4.8.4, which can lead to unauthorized SQL operations.

Vulnerability Detail

The vulnerability arises from the lack of proper CSRF protection in phpMyAdmin versions 4.7.x and 4.8.x before 4.8.4. By tricking a user into clicking on a malicious link, an attacker can execute harmful SQL commands without the user's consent. This can result in severe consequences, including renaming databases, creating or deleting tables, modifying user accounts, and even terminating SQL processes. The technical implications are significant, as the attacker can manipulate the database in various harmful ways, leading to data loss or corruption.

How To Fix

Minimum fixed version

4:4.9.1+dfsg1-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpmyadmin

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can limit access to the phpMyAdmin interface by implementing IP whitelisting or using additional authentication methods to restrict unauthorized access until the upgrade is completed.

Conclusion

The CSRF vulnerability in phpMyAdmin poses significant risks to database integrity and security. Users are strongly advised to upgrade to the latest version to mitigate these risks. Implementing additional security measures can also help protect against potential exploitation until the upgrade is completed.

See every vulnerability recorded for phpmyadmin →

Share this vulnerability

FAQ

CSRF, or Cross-Site Request Forgery, is an attack that tricks a user into executing unwanted actions on a web application in which they are authenticated. In phpMyAdmin, this can lead to unauthorized database modifications.

The vulnerability affects phpMyAdmin versions 4.7.x and 4.8.x prior to 4.8.4.

An attacker can perform harmful SQL operations such as renaming databases, creating or deleting tables, and modifying user accounts, which can lead to data loss or corruption.

You can use Vulert, which allows you to monitor and alert for open-source vulnerabilities in your software. You can check your application using the Vulert playground without any signup.

The CVSS score for this vulnerability is 8.8, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin.

How To Fix

Minimum fixed version

4:4.9.1+dfsg1-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpmyadmin

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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