All vulnerabilities

Servers and applications

GHSA-58cq-mgw2-38m5

Pre-auth SSRF via PDO DSN injection in server field (privileged-port validator bypass) — 5.4.5-dev

Severity
Medium 5.8
Published
17 Jul 2026
Last changed
17 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
5.5.0
Weakness
Server-side request forgery (CWE-918)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
Sources
Project advisories (GitHub)

Description

Adminer's login server-string validator rejects privileged ports (< 1024) but only inspects a leading integer. A value like localhost:zzz;host=10.0.0.5;port=22 passes validation, and the PDO drivers interpolate the raw port into an unquoted DSN. PDO_MySQL honours the smuggled host=/port= keys (last-key-wins) and opens a TCP connection to the attacker-chosen host:port. The connect fires before authentication, turning the login form into an unauthenticated SSRF / internal port-scan oracle that defeats the privileged-port restriction added in 5.4.3 (GHSA-r4x9-5m63-3vxw).

host_port() (adminer/include/functions.inc.php:867) splits the server string on the last colon and captures the port with [^:]+, so the port may contain ;, ,, /, spaces and letters. The validator (adminer/include/auth.inc.php:179) only rejects a port that begins with an out-of-range integer:

A port starting with a non-digit is never inspected. The PDO drivers then interpolate $port into an unquoted DSN:

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.5.0

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