Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessStand up rogue MySQL server returning crafted version banner
-
DeliveryLure Adminer user to connect to attacker server
-
ExploitAdminer inserts unsanitized banner into nonce-tagged script block
-
ExecutionInjected JS inherits valid CSP nonce
-
PersistBrowser executes arbitrary JavaScript
-
ImpactExfiltrate session tokens or database credentials
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 | The attacker must control or compromise a MySQL server that the victim will connect to via Adminer. The victim must actively initiate a connection from their Adminer instance (running in a browser) to that attacker-controlled server - this is the UI:P condition captured in the CVSS 4.0 vector. No authentication on the attacker's side is required (PR:N); the malicious payload is delivered entirely through the MySQL server version string returned during the connection handshake. Exploitation is limited to Adminer versions prior to 5.4.3. The browser must render the Adminer PHP response (i.e., the connection attempt must reach the server-rendered output stage). There is no requirement for a specific operating system, database type beyond MySQL-compatible servers, or non-default Adminer configuration - the vulnerable code path is exercised on every MySQL connection attempt. |
| Impact | The CVSS 4.0 score of 5.3 (Medium) reflects the required user interaction (UI:P) - the victim must actively connect Adminer to an attacker-controlled MySQL server - which substantially limits opportunistic mass exploitation. No EPSS data was provided, and the vulnerability has no CISA KEV entry and no confirmed public exploit code, all of which reduce urgency compared to a network-exploitable, no-interaction flaw. However, the CSP bypass dimension elevates practical impact beyond what the numeric score alone conveys: CSP is a last-resort browser control, and defeating it means any downstream mitigations relying on CSP are also neutralized. SSVC considerations: exploitation is not confirmed automated or widespread; technical impact is partial (limited confidentiality and integrity per CVSS 4.0 VC:L/VI:L). The realistic attack surface is developers and DBAs who use Adminer to connect to external, cloud, or shared MySQL instances - environments where the rogue-server precondition is plausible rather than contrived. The CVSS AV:N and AC:L metrics are consistent with the description: once a user initiates a connection to the attacker's server, no further complexity barriers exist on the attacker's side. |
| Exploit ScenarioDerived | An attacker operates a rogue MySQL server configured to return a crafted version banner string containing JavaScript payload wrapped in script-breaking syntax. A developer or DBA visits Adminer in their browser and enters the attacker's server address as the connection target - perhaps via a phishing link, a compromised infrastructure recommendation, or a shared staging environment. Adminer retrieves the banner, inserts it unsanitized into a nonce-bearing script tag, and the victim's browser executes the injected JavaScript with the trust level of the Adminer origin, potentially exposing database credentials, session tokens, or enabling further pivoting. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 25, 2026
Cross-site scripting with CSP bypass in Adminer before 5.4.3 enables arbitrary JavaScript execution in the browser of any user who connects to an attacker-controlled MySQL server. The vulnerability stems from unsanitized MySQL server version strings being injected directly into script tags that carry valid Content Security Policy nonces, effectively nullifying CSP protections. No public exploit code or CISA KEV entry has been identified at time of analysis, but the attack is meaningful against administrators and developers who routinely connect Adminer instances to external or third-party MySQL servers.
RemediationAI
Upgrade to Adminer 5.4.3 or later, which introduces proper sanitization of the MySQL server version string before it is inserted into script contexts. The vendor advisory at https://github.com/vrana/adminer/security/advisories/GHSA-h6jr-7pr6-grgj should be consulted for patch details and any additional guidance. As a compensating control where immediate upgrade is not feasible, restrict Adminer's network access so it can only connect to known-trusted MySQL servers - for example by enforcing firewall rules or application-level allowlists on outbound TCP 3306 connections. This limits the rogue-server precondition but does not eliminate risk if any trusted server is itself compromised. Alternatively, disabling Adminer access from public-facing environments and restricting it to authenticated VPN or internal-only access reduces the browser-victim attack surface, since the exploit requires a logged-in user's browser session. There is no known configuration-only workaround that prevents the vulnerable code path without restricting connectivity.
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
Adminer (CPE: cpe:2.3:a:vrana:adminer:*:*:*:*:*:*:*:*) is a single-file PHP database management application that renders a web interface for interacting with database servers including MySQL. When Adminer connects to a MySQL server, it retrieves the server's version banner string. The vulnerable code path inserts this externally-supplied string into an inline script tag that is decorated with a dynamically generated CSP nonce - a mechanism normally used to whitelist specific inline scripts under a Content-Security-Policy header. Because the version string is not sanitized or escaped before insertion, a rogue MySQL server returning a crafted banner can inject closing script tags and arbitrary JavaScript that inherits the valid nonce and therefore passes CSP enforcement. This is a reflected/stored XSS (CWE-79) that is particularly severe because it defeats the primary browser-side defense (CSP nonce) intended to prevent exactly this class of attack.
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
Network-delivered XSS requires victim to initiate connection to rogue server (UI:R); nonce inheritance causes scope change affecting victim browser (S:C); no confidentiality or integrity impact on availability.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Adminer before 5.4.3 inserts unsanitized database server version strings into script tags with valid CSP nonces without proper validation. Attackers controlling a rogue MySQL server can return crafted version strings that break out of the JavaScript context and execute arbitrary code, bypassing Content Security Policy protections.
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.
Related Vulnerabilities in Adminer File Access and Injection Flaws
View all 10Adminer 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 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
EUVD-2026-65202
GHSA-gx46-wch5-wp5p
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB