All vulnerabilities

Servers and applications

GHSA-rwxg-xph9-82cj

Privileged-port SSRF via host_port regex non-match

Severity
Medium 6.9
Published
7 Sept 2026
Last changed
7 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
6.0.2
Weakness
Improper input validation (CWE-20)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:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
Sources
Project advisories (GitHub)

Description

Introduced in v5.5.1 (2026-07-21): commit b9bf3c9 ("Login: Allow :/_ in server", fix #1305) rewrote host_port() so the port group is (:(\d+))? (pure digits, $-anchored). Any server string with a non-digit tail now fails the regex and falls back to an empty parsed port, so the privileged-port check skips and the driver re-parses host:port from the host string — re-opening the bypass the 5.5.0 fix (GHSA-58cq-mgw2-38m5) closed. Not present in 5.5.0. Default server/mysqli driver, no config gate; unauth (the connect fires before credentials are validated).

Adminer 5.5.1 rejects a login whose target port is a privileged port (< 1024). The check runs only on the port that host_port() parses out of the server string. When the server string does not match the host_port() regex, the function returns the entire string as $host with an empty $port, so the privileged-port check is skipped.

From vrana/adminer's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
AdminerServers and applications · github:vrana/adminer
  • From 5.5.1 before 6.0.2

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