vrana/adminer is vulnerable to Server-Side Request Forgery (SSRF)
58
Medium Risk
Adminer's login form validates the connection server string but only inspects a leading integer when enforcing the privileged-port restriction, so a value whose port begins with a non-digit is never range-checked. The unchecked value is interpolated into an unquoted PDO DSN, letting user-controlled host=/port=/unix_socket= keys be smuggled in and honoured last-key-wins by the PDO drivers. Because the connection is attempted before authentication, an unauthenticated request drives the server to open TCP connections to arbitrary internal hosts and ports and to arbitrary unix sockets, acting as a blind request-forgery and internal port-scan oracle. The fix tightens host and port validation, including privileged-port bounds, so smuggled DSN attributes are rejected.
You are affected if an instance on a version in the vulnerable range is reachable by untrusted users, because the vulnerable connection flow runs before authentication — anyone who can reach the login form can submit a crafted server value and drive the smuggled PDO DSN connection. No plugin or non-default configuration is required; the privileged-port validator bypass sits in the default login path. Instances restricted to the PostgreSQL driver are not affected (host/port are quoted), while MySQL/MariaDB, MS SQL (DBLIB/SQLSRV) and Oracle drivers are.
vrana/adminer is vulnerable to Server-Side Request Forgery (SSRF) in versions 0.0.1 - 5.4.4.
Upgrade the vrana/adminer library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant