SQL Injection Vulnerability in phpMyAdmin

phpmyadmin Updated 02 Oct 2025

Summary

16/02/2011
N/A
Yes i
Unrated
Not published

DSA-2167-1: phpmyadmin - sql injection. Affects phpmyadmin versions < 4:3.3.7-5. Fixed in 4:3.3.7-5. 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 web-based tool used for administering MySQL databases. It provides a user-friendly interface for managing database operations such as creating, modifying, and deleting tables, executing queries, and managing user permissions. The vulnerability in phpMyAdmin allows an attacker to perform SQL injection attacks, potentially leading to unauthorized access, data manipulation, or even remote code execution.

Vulnerability Detail

The vulnerability in phpMyAdmin occurs when the bookmarks feature is enabled. It allows users to create bookmarked queries that can be executed by other users unintentionally. This can be exploited by an attacker to inject malicious SQL code into a bookmarked query, which will be executed when accessed by another user. The impact of this vulnerability depends on the privileges of the affected user. If the user has administrative privileges, the attacker could gain full control over the database and potentially the underlying server.

How To Fix

Minimum fixed version

4:3.3.7-5

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

If upgrading phpMyAdmin is not immediately feasible, a temporary workaround is to disable the bookmarks feature. This can be done by modifying the configuration file and setting the 'bookmarktable' option to an empty value. However, this workaround should only be considered as a temporary measure, and upgrading to the latest version is strongly recommended.

Conclusion

The SQL injection vulnerability in phpMyAdmin can have serious consequences, including unauthorized access, data manipulation, and potential remote code execution. It is crucial to promptly upgrade to the latest version of phpMyAdmin and regularly apply security patches to mitigate the risk. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for phpmyadmin →

Share this vulnerability

FAQ

phpMyAdmin is a web-based tool used for managing MySQL databases. It provides an intuitive interface for performing various database operations.

SQL injection is a type of vulnerability that allows an attacker to manipulate database queries by injecting malicious SQL code. This can lead to unauthorized access, data manipulation, or even remote code execution.

The vulnerability occurs when the bookmarks feature is enabled. It allows users to create bookmarked queries that can be executed unintentionally by other users. An attacker can exploit this by injecting malicious SQL code into a bookmarked query, which will be executed when accessed by another user.

The impact of this vulnerability depends on the privileges of the affected user. If the user has administrative privileges, the attacker could gain full control over the database and potentially the underlying server. This can lead to unauthorized access, data manipulation, or even remote code execution.

To fix this vulnerability, it is recommended to upgrade to the latest version of phpMyAdmin. For specific instructions, refer to the 'how_to_fix' section above.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyadmin.

How To Fix

Minimum fixed version

4:3.3.7-5

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