CVE-2026-100695

Adminer before 6.0.2 XSS via CONNECTION_ID escalating to RCE

Published Sep 26, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 28, 2026, 5:45 PM
Reserved
Sep 26, 2026, 2:37 AM
Status
Awaiting Analysis
Published
Sep 26, 2026, 2:16 PM
Modified
Sep 28, 2026, 6:17 PM