CVE-2026-145605 in Adminerinfo

Summary

by MITRE • 12/06/2026

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 check_sqlite_name() suffix check. Attackers can force the PDO_SQLite backend, create a .php file in the web root, and write PHP code via CREATE TABLE to execute commands as the web server user.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 12/06/2026

Adminer versions prior to 6.3.1 are susceptible to a critical remote code execution vulnerability that stems from improper validation of database names within the SQLite backend implementation. This flaw allows authenticated users, who possess valid credentials for the Adminer interface, to bypass security checks and execute arbitrary PHP code on the underlying server. The core technical issue lies in how the application handles file paths when interacting with PDO_SQLite databases. Specifically, an attacker can supply a specially crafted database name using a file: URI scheme that successfully passes the internal check_sqlite_name() function's suffix validation logic. This validation mechanism is designed to ensure that only specific extensions are permitted for SQLite files but fails to adequately sanitize or restrict the path components preceding the extension.

By exploiting this insufficient input validation, an attacker can manipulate the database creation process to target directories outside of the intended data storage location. The vulnerability enables the forced creation of a file with a .php extension directly within the web root directory of the hosting environment. Once such a file is created, it serves as a persistent backdoor because PHP files located in the web root are typically executed by the web server process when accessed via HTTP requests. This means that any content written into this newly created database file during table creation operations can be interpreted and executed as active code rather than static data.

The operational impact of this vulnerability is severe, resulting in full remote code execution under the context of the web server user account. Since Adminer requires authentication to access its features, this exploit represents a privilege escalation scenario where an authorized but potentially compromised or malicious low-privileged user gains administrative control over the application and underlying operating system. The attacker can inject arbitrary PHP payloads into the CREATE TABLE statements used during database initialization. When these tables are created, the injected code is written directly to the .php file in the web root. Subsequent access to this file allows the execution of any command supported by the server environment, leading to complete compromise of the application's confidentiality, integrity, and availability.

This vulnerability aligns with CWE-94 Improper Control of Generation of Code (Code Injection) as it involves the injection of executable code into a context where it is interpreted rather than treated as data. Furthermore, from an adversary perspective, this technique corresponds to ATT&CK T1505 Server Software Component which describes attackers installing or creating backdoor components within server software to maintain persistence and facilitate further lateral movement. The exploitation method also reflects CWE-436 Interpretation Conflict where the system interprets user input differently than intended due to ambiguous parsing rules regarding file paths and extensions.

Mitigation strategies must prioritize immediate patching of the Adminer installation to version 6.3.1 or later, as this release addresses the validation logic flaws in the SQLite backend handling. Organizations should also enforce strict least-privilege principles by ensuring that web server processes operate with minimal permissions necessary for their function, thereby limiting the potential damage if a file write operation succeeds. Additionally, implementing Web Application Firewalls can help detect and block attempts to inject suspicious patterns into database parameters or URI schemes associated with backend operations. Regular auditing of application logs for unusual file creation events in sensitive directories such as web roots provides an additional layer of defense against exploitation attempts that may bypass other controls.

Responsible

VulnCheck

Reservation

12/05/2026

Disclosure

12/06/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!