Adminer Cookie Injection Vulnerability via X-Forwarded-Prefix Header (CVE-2026-63771)
Adminer versions prior to 5.4.3 are vulnerable to a cookie injection flaw, which allows attackers to manipulate cookie attributes by injecting arbitrary values through the unsanitized X-Forwarded-Prefix HTTP header, enabling cross-origin authenticated requests and bypassing cookie security controls.
Adminer, a database management tool, is affected by a cookie injection vulnerability, identified as CVE-2026-63771, impacting versions before 5.4.3. This flaw stems from the tool's unsanitized use of the X-Forwarded-Prefix HTTP header when setting Set-Cookie path attributes. Attackers can exploit this by sending a specially crafted X-Forwarded-Prefix header, particularly when Adminer is deployed behind a misconfigured reverse proxy. Successful exploitation allows for the manipulation of cookie attributes, such as downgrading SameSite protection, which can lead to the enabling of cross-origin authenticated requests and bypassing critical cookie security controls. This can result in session hijacking or unauthorized access to the Adminer interface, compromising database management capabilities.
Attack Chain
- An attacker identifies an Adminer instance running behind a misconfigured reverse proxy.
- The attacker sends an HTTP request to the Adminer instance, including a crafted
X-Forwarded-PrefixHTTP header containing special characters (e.g.,;,%0d%0a,=) intended for cookie attribute injection. - The misconfigured reverse proxy forwards this request, and Adminer processes the unsanitized
X-Forwarded-Prefixheader when generating aSet-Cookieresponse. - Adminer injects the attacker-supplied values from
X-Forwarded-Prefixdirectly into theSet-Cookiepath attributes of the HTTP response. - This injection allows the attacker to manipulate cookie attributes, such as downgrading SameSite protection or setting arbitrary cookie properties.
- By successfully manipulating the
Set-Cookieheader, the attacker enables cross-origin authenticated requests that would normally be prevented by browser security policies. - The attacker then leverages this weakened cookie security to perform unauthorized actions as an authenticated user from a different origin, bypassing standard browser security controls (e.g., session hijacking, unauthorized database access).
Impact
Successful exploitation of CVE-2026-63771 allows attackers to bypass critical cookie security controls, potentially leading to unauthorized access to the Adminer interface and the underlying databases it manages. This can result in session hijacking, data exposure, data tampering, or unauthorized administrative actions within the affected environment. While no specific victim counts or targeted sectors are mentioned, any organization using vulnerable Adminer versions behind a misconfigured reverse proxy is at risk of compromising their database management infrastructure.
Recommendation
- Patch CVE-2026-63771 by updating Adminer to version 5.4.3 or newer immediately.
- Deploy the Sigma rule "Detect CVE-2026-63771 Exploitation Attempts via X-Forwarded-Prefix" to your SIEM and tune for your environment, focusing on webserver logs.
- Configure reverse proxies to properly sanitize or remove the
X-Forwarded-Prefixheader before forwarding requests to backend applications if it is not explicitly required.
Detection coverage 1
Detect CVE-2026-63771 Exploitation Attempts via X-Forwarded-Prefix
highDetects exploitation attempts for CVE-2026-63771 by identifying HTTP requests with the X-Forwarded-Prefix header containing characters typically used for cookie injection.
Detection queries are available on the platform. Get full rules →