CVE-2026-145605: Adminer before 6.3.1 RCE via SQLite file: URI in check_sqlite_name()
Adminer before 6.3.1 contains a remote code execution vulnerability that allows authenticated users to create arbitrary files by passing a file: URI database name that satisfies the checksqlitename() suffix check. Attackers can force the PDOSQLite backend, create a .php file in the web root, and write PHP code via CREATE TABLE to execute commands as the web server user.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.3.1
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker must be authenticated to Adminer and able to supply a SQLite database name. Exploitation also requires forcing the PDO_SQLite backend and creating a PHP file in the web root.
What access does successful exploitation provide?
Successful exploitation can result in execution of attacker-supplied PHP code as the web server user. The described technique writes the PHP payload through a CREATE TABLE operation after creating a .php file.
Which versions are affected?
Adminer versions before 6.3.1 are affected. Upgrading to 6.3.1 or later addresses the affected version range described here.