Summary
CVE-2026-56705 affects Adminer, the popular single-file PHP database management tool. Versions before 5.4.3 fail to sanitize the server field before it is used to build a PDO DSN string for MSSQL connections, allowing an unauthenticated attacker to inject ODBC parameters and achieve remote code execution. The issue is rated CRITICAL severity.
Technical details
- Root cause: Adminer builds the MSSQL PDO DSN by directly concatenating user-supplied host/server input (e.g.
"sqlsrv:Server=$host") without stripping semicolons, which act as parameter delimiters in ODBC connection strings. - Trigger condition: Requires the
pdo_sqlsrvPHP extension and the Microsoft ODBC Driver for SQL Server to be installed, and a web-writable directory reachable by the application. - Attack vector: An attacker submits a crafted
servervalue (e.g. via the login form) containing semicolon-delimited ODBC parameters such asTraceFileandTraceOn, redirecting the ODBC driver’s connection trace output to a file inside the web root. - Impact: Because the trace file can be made to include attacker-controlled connection string content, injecting PHP code into that content and having it written to a web-accessible path results in unauthenticated remote code execution.
Affected software
- Adminer (all builds) prior to version 5.4.3
Severity
- CVSS v3.1 Base Score: 9.8 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade Adminer to version 5.4.3 or later, which sanitizes the
serverfield before DSN construction. - If patching is not immediately possible: Restrict or disable network exposure of the Adminer login page (e.g. place it behind authentication, VPN, or IP allowlisting), and consider removing/disabling the
pdo_sqlsrvMSSQL driver support if MSSQL connectivity via Adminer is not required, to eliminate the vulnerable code path.
How IONIX identifies potentially affected assets
IONIX matches the following signals against data already collected when it crawled the asset; identifying the technology sends no request beyond that crawl.
- Raw response body:
Adminer <span class="version">,onclick="bodyClick(event);" onload="verifyVersion(

