Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure authenticated Adminer user to malicious DB server
-
DeliveryReturn crafted CONNECTION_ID() value
-
ExploitInterpolated into JS unescaped, XSS fires
-
ExecutionScript submits authenticated SQL INTO DUMPFILE
-
PersistWrite PHP webshell to webroot
-
ImpactExecute as web-server account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated Adminer session that connects to an attacker-controlled or attacker-compromised database server (UI:P - the victim must initiate/accept the malicious DB connection); the malicious server returns a crafted CONNECTION_ID() result that Adminer versions before 6.0.2 interpolate into JavaScript without escaping. The base XSS fires under these conditions. Escalation to remote code execution additionally requires a co-located deployment where the connected database account holds the FILE privilege and the web server's document root is writable by the database process, enabling SQL writes via INTO DUMPFILE. Limiting factors: victim interaction with the malicious DB server, an authenticated Adminer origin, and the non-default RCE preconditions (FILE priv + writable webroot + DB/web co-location). |
| Impact | This is a high-CVSS-context but moderate-real-risk issue. The vendor CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:P) scores 5.3 (MEDIUM), and the key limiting factor is UI:P (Passive user interaction) - exploitation requires that an authenticated Adminer user actively connect to an attacker-controlled or attacker-compromised database server, which is not a typical unauthenticated drive-by. No EPSS score, KEV listing, or public POC is present in the provided data, so exploitation status is 'no public exploit identified at time of analysis.' The stated RCE escalation is real but heavily conditional: it requires a co-located deployment where the DB account holds FILE privileges AND the webroot is writable by the DB server (INTO DUMPFILE). Absent those conditions the impact is limited to XSS in the Adminer origin (VC:L/VI:L). Signals are internally consistent - there is no network-vs-local contradiction - but the vendor score arguably understates the ceiling when the RCE preconditions are met; my independent assessment treats the scope as changed (attacker DB server → victim browser origin) but keeps confidentiality/integrity Low. Net: a legitimate but conditional issue best treated as defense-in-depth patching rather than an emergency, given no evidence of active exploitation and the user-interaction requirement. |
| Exploit ScenarioDerived | An attacker who controls or compromises a MySQL/MariaDB-compatible server lures or waits for a victim to open Adminer and authenticate a connection to that server; the malicious server returns a crafted CONNECTION_ID() value that Adminer interpolates into JavaScript unescaped, executing arbitrary script in the authenticated Adminer origin. In a co-located deployment where the DB account has FILE privilege and the webroot is writable, the injected script issues authenticated SQL to write a PHP webshell via INTO DUMPFILE, yielding code execution as the web-server account. No public exploit code is identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 26, 2026
Cross-site scripting in Adminer before 6.0.2 allows a malicious database server to execute arbitrary JavaScript in an authenticated Adminer session by returning a crafted CONNECTION_ID() result that is interpolated into JavaScript without escaping. The base XSS requires a victim to initiate a connection to the malicious server (UI:P); in co-located deployments where the database account holds FILE privileges and the webroot is writable, this can escalate to remote code execution via SQL writes using INTO DUMPFILE. No public exploit code has been identified at time of analysis, and exploitation requires specific non-default conditions for the RCE escalation.
RemediationAI
Vendor-released patch: Adminer 6.0.2 and later. Upgrade to version 6.0.2 or the latest available release. If immediate upgrade is not possible, mitigate by restricting Adminer users from connecting to untrusted or attacker-controlled database servers, as the XSS requires initiating a connection to such a server. For co-located deployments, ensure that database accounts used by Adminer do not have the FILE privilege unless absolutely necessary, and ensure the web server document root is not writable by the database process; these controls prevent the INTO DUMPFILE escalation but may break legitimate import/export functionality. Additionally, consider network segmentation to limit database server connections to trusted hosts. Refer to the vendor advisory at https://github.com/vrana/adminer/security/advisories/GHSA-7c5h-q78c-fpxx for further details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability is a CWE-79 improper neutralization of input during web page generation (cross-site scripting) in Adminer, a PHP-based database management tool. Adminer retrieves the database connection identifier via CONNECTION_ID() and interpolates it directly into JavaScript code without proper escaping. When an authenticated user connects to an attacker-controlled or compromised database server, that server can return a malicious value for CONNECTION_ID() that executes in the context of the Adminer origin. The CVSS vector indicates no privileges required (PR:N) for the attacker, but the victim must have an authenticated Adminer session and initiate a connection to the malicious server (UI:P). CPE cpe:2.3:a:vrana:adminer:*:*:*:*:*:*:*:* covers all versions before 6.0.2. The escalation to remote code execution leverages the SQL execution capability within Adminer: if the connected database account has the FILE privilege and the web server document root is writable by the database process (co-located deployment), the attacker can use the XSS to submit authenticated SQL requests that write PHP files via INTO DUMPFILE, leading to code execution as the web server account. The independent assessment rates this as a high-CVSS-context but moderate-real-risk issue due to the interaction and environmental prerequisites.
Know when Adminer 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Victim must connect to the malicious DB server (UI:R); attacker DB server compromises a separate Adminer origin (S:C); base impact is limited XSS (C:L/I:L), RCE only under non-default preconditions.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Adminer before 6.0.2 contains a cross-site scripting vulnerability where the CONNECTION_ID() database result is interpolated into JavaScript without proper escaping, allowing a malicious database server to execute arbitrary JavaScript in the authenticated Adminer origin. In co-located deployments where the database has FILE privileges and can write to the webroot, attackers can use the XSS to submit authenticated SQL requests that write PHP files via INTO DUMPFILE, achieving remote code execution as the web server account.
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
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Adminer through 4.3.1 has SSRF via the server parameter. Rated critical severity (CVSS 9.8), this vulnerability is remot
Adminer versions 5.4.1 and earlier suffer from a post-message validation bypass that allows remote attackers to trigger
Adminer is an open-source database management in a single PHP file. Rated high severity (CVSS 7.2), this vulnerability i
Adminer is open-source database management software. Rated medium severity (CVSS 6.1), this vulnerability is remotely ex
The official adminer docker images before 4.7.0-fastcgi contain a blank password for a root user. Rated critical severit
Remote code execution in Adminer before 5.4.3 (the single-file PHP database management tool) allows unauthenticated atta
Remote code execution in Adminer before 5.4.3 allows authenticated attackers connected to a SQLite database to write arb
Remote code execution in Adminer before 6.1.1 allows authenticated users with SQLite access to bypass ATTACH and VACUUM
Remote code execution in Adminer 5.4.2 allows authenticated high-privilege users to execute arbitrary code in the contex
Arbitrary file deletion in Adminer before 5.4.3 exposes any file writable by the PHP process to authenticated attackers
Unrestricted PHP file upload in Adminer's AdminerFileUpload plugin (versions before 5.4.3) allows any authenticated low-
Server-side request forgery in Adminer before 5.5.0 allows unauthenticated remote attackers to probe arbitrary internal
EUVD-2026-87668
GHSA-3hv2-gxcf-jxpg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB