All vulnerabilities

Servers and applications

GHSA-c533-9qwm-8w5h

Cookie Attribute Injection via Unsanitized X-Forwarded-Prefix in Set-Cookie Headers

Severity
Medium 6.9
Published
9 Jul 2026
Last changed
12 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
5.4.3
Weakness
Improper input validation (CWE-20)HTTP response splitting (CWE-113)CWE-807
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
Attacker can
Read data · Change some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
Sources
Project advisories (GitHub)

Description

Adminer versions 4.6.0 through at least 5.4.2 are vulnerable to cookie attribute injection via the X-Forwarded-Prefix HTTP header. An attacker who can influence this header (e.g., through a reverse proxy that forwards it from clients, an attacker-controlled upstream proxy, or a man-in-the-middle position) can inject arbitrary cookie attributes including Domain, Path, Secure, and SameSite into all Set-Cookie response headers emitted by Adminer.

This allows an attacker to expand the cookie scope to an attacker-controlled domain (e.g., Domain=.evil.com), causing the victim's browser to send Adminer's adminer_sid (session ID) and adminer_key (database password encryption key) cookies to the attacker's server on subsequent requests.

(adminer/include/bootstrap.inc.php, line 49):

The PHP session cookie (adminer_sid) path is similarly derived from the tainted REQUEST_URI, extending the same vulnerability to the session cookie set by PHP itself.

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

Workarounds

Configure the reverse proxy to set X-Forwarded-Prefix to a static, trusted value rather than forwarding the client-supplied header:

Workarounds as given by vrana/adminer's security advisory.

Affected software

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