All vulnerabilities

Servers and applications

GHSA-r4x9-5m63-3vxw

Unauthenticated RCE via MSSQL PDO DSN Injection

Severity
Critical 9.8
Published
9 Jul 2026
Last changed
12 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
5.4.3
Weakness
CWE-73Argument injection (CWE-88)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Sources
Project advisories (GitHub)

Description

Adminer fails to sanitize the user-supplied server field before constructing a PDO DSN string. An attacker can inject semicolons to append arbitrary ODBC parameters, including TraceFile; causing the ODBC driver to write a file containing the attacker-controlled username value to a path of their choice. Since the username appears verbatim in the trace output, injecting PHP code there results in a web shell. No authentication is required.

  • pdo_sqlsrv PHP extension installed
  • Microsoft ODBC Driver for SQL Server installed
  • Web root writable by the web server process

These conditions are common on servers connecting to Azure SQL Database or SQL Server.

mssql.inc.php, lines 185–188:

$host is interpolated directly into the DSN without escaping. Semicolons in the server value are treated as DSN parameter delimiters by the ODBC driver manager, allowing injection of arbitrary ODBC options.

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 5.4.3

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