phpMsAdmin
CVE-2025-63948
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege account
-
ExploitSubmit crafted dbname parameter to database_mode.php
-
ExecutionInject arbitrary SQL commands
-
ImpactDisclose or manipulate database contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated session (CVSS PR:L) with access to the database_mode.php endpoint, and the attacker must be able to supply the dbname parameter to that script - this is the exact injection point named in the advisory. No user interaction is required (UI:N) and the vector is network-reachable (AV:N). The primary limiting factors are the low-privilege authentication requirement and the product's rarity (phpMsAdmin 2.2 is a niche, individually maintained application), which sharply constrain the realistic attack surface despite the public exploit. |
| Impact | This is a high-CVSS-is-actually-moderate case that does not warrant elevated priority. CVSS 3.1 is 5.4 (Medium) with vector AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N - network-reachable and low-complexity, but requiring low-level authentication (PR:L) and yielding only partial confidentiality and integrity impact with no availability impact. EPSS is 0.22% (12th percentile), indicating very low modeled probability of exploitation in the near term. The vulnerability is NOT in CISA KEV, so there is no evidence of active exploitation; however, publicly available exploit code exists (referenced advisory on GitHub), which lowers the skill barrier for an attacker who already holds valid credentials. These signals are internally consistent: a credentialed SQL injection in an obscure product with a public POC but low EPSS and no KEV points to opportunistic or research-driven interest rather than widespread or targeted campaigns. The dominant limiting factor is prevalence - phpMsAdmin (craigtaub) is a tiny, little-deployed project - which, combined with the PR:L authentication requirement, keeps real-world risk low despite the publicly available exploit. |
| Exploit ScenarioDerived | An attacker who already has low-privileged authenticated access to a phpMsAdmin 2.2 instance submits a crafted value in the dbname parameter to database_mode.php, injecting arbitrary SQL that the application concatenates into a backend query. This allows the attacker to read data from or modify the connected database beyond their intended authorization. Publicly available exploit code exists for this flaw, reducing the effort needed to reproduce it. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 13, 2026
SQL injection in phpMsAdmin 2.2 allows an attacker to execute arbitrary SQL commands through the dbname parameter of database_mode.php, potentially exposing or altering database contents. The attack is network-reachable and requires an authenticated, low-privileged session (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N, base 5.4) with access to the affected script, and no user interaction is needed. Publicly available exploit code exists, though EPSS places exploitation likelihood at only 0.22% (12th percentile) and the product's niche, individually maintained status keeps real-world exposure low; this is not a confirmed actively exploited (CISA KEV) issue.
RemediationAI
No vendor-released patch identified at time of analysis; no fixed version is specified in the available references. Because the injection is confined to authenticated users of database_mode.php, the most effective immediate control is to restrict that endpoint: place phpMsAdmin behind a VPN or an authenticating reverse proxy, or block external access to database_mode.php entirely, so only trusted administrators on trusted networks can reach it. Run the application's backend under a least-privileged database account limited to the specific databases it needs and stripped of DDL and administrative rights - this caps what an injected statement can read or change, though it may break maintenance features that require broader privileges. Add input validation on dbname against an allowlist of known database names, and deploy WAF rules targeting SQL metacharacters in the dbname parameter (accepting the risk of false positives on legitimate names). If the tool is not essential, decommission or replace phpMsAdmin, since it is a niche, individually maintained project unlikely to receive timely updates; monitor the advisory at https://github.com/solonbarroso/vulnerability-research/blob/main/advisories/phpMsAdmin/CVE-2025-63948.md for a patch.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-89, improper neutralization of special elements used in an SQL command: the database_mode.php script takes the user-supplied dbname parameter and incorporates it into a database query without adequate parameterization or escaping. phpMsAdmin is a PHP-based web front end in the phpMyAdmin mold, used to administer database servers from a browser, so its own backend queries run with the privileges of the application's configured database account. Because the injection point is a script endpoint rather than a hardened API, the practical reach of any injected statement is bounded by the privileges of that account (reflected in the low confidentiality and integrity impact of the assessed vector), but a successful injection could still read schema and data or modify tables. CPE metadata pins the affected product precisely to cpe:2.3:a:craigtaub:phpmsadmin:2.2, and the advisory attributes the flaw to the dbname parameter specifically. The CVSS vector's PR:L confirms the endpoint is gated behind authentication, meaning an attacker must first obtain a valid low-privileged login; there is no scope change (S:U) and no availability impact (A:N).
Know when Phpmsadmin gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Network-reachable injection point with low complexity but requiring an authenticated low-privilege session (PR:L); partial read/write of DB data (C:L/I:L) with no availability impact.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
A SQL Injection vulnerability exists in phpMsAdmin version 2.2 in the database_mode.php file. An attacker can execute arbitrary SQL commands via the dbname parameter, potentially leading to information disclosure or database manipulation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
NVD
CVE.org
EPSS
GitHub
Exploit-DB