CSRF Vulnerability in phpMyAdmin Allows Server Deletion

phpmyadmin Updated 02 Oct 2025

Summary

13/09/2019
N/A
Yes i
Medium
6.5

CVE-2019-12922: A CSRF issue in phpMyAdmin 4.9.0.1 allows deletion of any server in the Setup page. Affects phpmyadmin across 3 version ranges.

< 4:4.9.1+dfsg1-2 < 7d21d4223bdbe0306593309132b4263d7087d13b < 427fbed55d3154d96ecfc1c7784d49eaa3c04161

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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

phpMyAdmin is a widely-used open-source tool for managing MySQL databases through a web interface. It provides features such as database creation, modification, and administration, making it essential for developers and database administrators. However, the tool is susceptible to Cross-Site Request Forgery (CSRF) attacks, which can lead to unauthorized actions being performed on behalf of authenticated users.

Vulnerability Detail

The vulnerability identified as CVE-2019-12922 is a CSRF issue present in phpMyAdmin version 4.9.0.1. This flaw allows an attacker to craft a malicious request that, when executed by an authenticated user, can result in the deletion of any server listed on the Setup page. The attack exploits the lack of proper CSRF protection, enabling unauthorized actions without the user's consent. The potential ramifications include loss of critical database configurations and data, leading to significant operational disruptions.

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 implement CSRF tokens in their phpMyAdmin setup. This involves modifying the configuration to require a unique token for each request that alters server settings. However, this is not a substitute for upgrading to a secure version.

Conclusion

CVE-2019-12922 represents a significant security risk for phpMyAdmin users, allowing unauthorized server deletions through CSRF attacks. It is crucial for users to upgrade to version 4.9.1 or later to protect their installations. Implementing temporary workarounds can help, but they should not replace the need for an upgrade.

See every vulnerability recorded for phpmyadmin →

Share this vulnerability

FAQ

CVE-2019-12922 is a vulnerability in phpMyAdmin that allows attackers to perform unauthorized actions, such as deleting servers, through CSRF attacks.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to the deletion of critical server configurations, resulting in data loss and operational disruptions.

Yes, implementing CSRF tokens can help mitigate the risk, but it is strongly recommended to upgrade to a secure version.

The CVSS score for CVE-2019-12922 is 6.5, indicating a medium level of severity.

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