Skip to main content

phpMsAdmin CVE-2025-63948

MEDIUM
SQL Injection (CWE-89)
2025-12-18 cve@mitre.org
5.4
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with low-privilege account
  2. Exploit
    Submit crafted dbname parameter to database_mode.php
  3. Execution
    Inject arbitrary SQL commands
  4. Impact
    Disclose 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (mitre) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Rare
obscure individual-developer GitHub project, negligible enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Affected Products (CPE)CVE.org

cpe:2.3:a:craigtaub:phpmsadmin:2.2:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy