All vulnerabilities

Servers and applications

GHSA-7c5h-q78c-fpxx

Conditional RCE via CONNECTION_ID XSS + INTO DUMPFILE

Severity
Medium 6.1
Published
7 Sept 2026
Last changed
7 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
6.0.2
Weakness
Cross-site scripting (CWE-79)Code injection (CWE-94)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Sources
Project advisories (GitHub)

Description

Summary

Adminer 6.0.2-dev contains a malicious-database-server XSS that can be escalated to code execution in a co-located deployment. Adminer requests SELECT CONNECTION_ID() from a MySQL/MariaDB server and interpolates the returned value into an existing CSP-nonce-bearing JavaScript block without JavaScript escaping. A database server controlled by an attacker can return JavaScript instead of a numeric connection ID.

The XSS executes in the authenticated Adminer origin and can submit same-origin Adminer requests. If the deployment also has a database service on the web server, the authenticated database identity has FILE, secure_file_priv permits the webroot, the database service can write there, and PHP executes the resulting file, an Adminer SQL request can write an auto-loaded adminer-plugins.php file with SELECT ... INTO DUMPFILE. The file is then executed by the web server.

From vrana/adminer's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
AdminerServers and applications · github:vrana/adminer
  • Every version before 6.0.2

About Adminer

tool for managing content in MySQL databases

From Wikidata, CC0 1.0.
Docker Hub pulls
411,345,578Docker Hub, 15 Nov 2026
GitHub stars
7,954GitHub, 15 Nov 2026
Forks
1,181GitHub, 15 Nov 2026
Latest release
v6.3.0GitHub, 15 Nov 2026
Released
3 Nov 2026GitHub
Developer
Jakub VránaWikidata
License
Apache LicenseWikidata
Written in
PHPWikidata
First released
11 Jul 2007Wikidata
First published on GitHub
25 Apr 2010GitHub

References