All vulnerabilities

Servers and applications

GHSA-8478-xrj3-h9c2

X-Forwarded-Prefix open redirect

Severity
Medium 4.7
Published
17 Jul 2026
Last changed
17 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
5.5.0
Weakness
Improper input validation (CWE-20)CWE-441Open redirect (CWE-601)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
Sources
Project advisories (GitHub)

Description

The new reverse-proxy support prepends the client-supplied X-Forwarded-Prefix header to $_SERVER["REQUEST_URI"] on every request, with no configuration gate and no validation. Because REQUEST_URI always begins with /, an attacker header like X-Forwarded-Prefix: https://evil.example yields a fully attacker-controlled absolute URL that then flows into Location: redirects, the Set-Cookie path attribute, and every self-referential link Adminer emits.

adminer/include/bootstrap.inc.php:40-42:

There is no check that the request actually came through a trusted proxy and no restriction on the prefix value. The poisoned REQUEST_URI then reaches:

  • redirect() / queries_redirect() — header("Location: $location") where $location is $_SERVER["REQUEST_URI"] (e.g. adminer/db.inc.php:52, adminer/edit.inc.php:20).
  • cookie_path() — adminer/include/functions.inc.php:324, used for the session cookie (bootstrap.inc.php:49) and all Set-Cookie paths.
From vrana/adminer's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
AdminerServers and applications · github:vrana/adminer
  • From 4.6.0 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