Description
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.
Published: 2026-09-26
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

Adminer before version 6.0.2 is vulnerable to uncontrolled script injection when the CONNECTION_ID() database result is placed directly into JavaScript without escaping. This cross‑site scripting flaw permits an attacker who can influence the database output to execute arbitrary JavaScript code in the context of an authenticated Adminer session, effectively hijacking the browser session of the authenticated user. If the attacker can also control the database server or have FILE privileges that allow writing to the webroot, the XSS can be used to submit authenticated SQL queries that write PHP code via INTO DUMPFILE, resulting in remote code execution with the web server account.

Affected Systems

Adminer versions prior to 6.0.2 from the vendor vrana are affected. The vulnerability applies to any deployment using those versions, regardless of operating system, as long as the application is running under a web server and a database connection is established.

Risk and Exploitability

The severity is moderate with a CVSS score of 5.3. EPSS data is unavailable and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply malicious database output and, for the remote code execution path, the attacker must have control over the database server or have FILE privilege to write PHP files to the web root. Therefore the primary attack vector is a compromised database server or a user with elevated database permissions. The likelihood of exploitation depends on the presence of such privileges; in environments where database users are tightly scoped, the risk is reduced.

Generated by OpenCVE AI on September 26, 2026 at 16:11 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Adminer 6.0.2 or later
  • Remove FILE privileges from database users that connect through Adminer and restrict write access to the web root
  • Disable the INTO DUMPFILE command in the database or restrict it to privileged accounts

Generated by OpenCVE AI on September 26, 2026 at 16:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 28 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 26 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Adminer before 6.0.2 XSS via CONNECTION_ID escalating to RCE
First Time appeared Adminer
Adminer adminer
Weaknesses CWE-79
CPEs cpe:2.3:a:adminer:adminer:*:*:*:*:*:*:*:*
Vendors & Products Adminer
Adminer adminer
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-28T17:45:53.936Z

Reserved: 2026-09-26T02:37:41.038Z

Link: CVE-2026-100695

cve-icon Vulnrichment

Updated: 2026-09-28T17:45:26.879Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-26T14:16:54.297

Modified: 2026-09-28T18:17:15.590

Link: CVE-2026-100695

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-26T17:45:06Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')