Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach Adminer instance over network
-
DeliveryInject X-Forwarded-Prefix: https://evil.example header
-
ExploitAuthenticated victim submits state-changing POST
-
ExecutionAdminer prepends attacker prefix to Location redirect header
-
PersistVictim browser navigates to attacker-controlled URL
-
ImpactPhish database credentials or session token
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | The open redirect requires an authenticated Adminer user to perform a state-changing POST action (login submission, query execution, or similar) while the attacker is able to supply a crafted X-Forwarded-Prefix header - this typically requires a man-in-the-middle position between the client and Adminer, the ability to influence the request through a shared or misconfigured proxy, or an SSRF capability that triggers Adminer on the victim's behalf. The unauthenticated cookie path manipulation requires only network access to the Adminer instance and no credentials. Neither attack path requires any non-default Adminer configuration - the vulnerability is present in default deployments of affected versions. Exploitation of the open redirect is constrained by the need for user interaction (a POST must be performed). Header splitting and XSS are explicitly not possible because CR/LF characters are filtered, limiting the attack surface to redirect and cookie-scope abuse. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, score 5.3) correctly captures the split nature of this vulnerability: network-reachable, low complexity, but requiring passive user interaction for the highest-impact path. The open redirect requires an authenticated user to submit a state-changing POST while the attacker controls the X-Forwarded-Prefix header; the cookie path manipulation is unauthenticated but carries lower direct impact. No EPSS score was provided in the input data, and the vulnerability has not been added to the CISA KEV catalog as of this analysis. No public proof-of-concept code has been identified. Despite the 'XSS' tag in the VulnCheck source, the description explicitly states XSS is not achievable, and that tag should be disregarded. Real-world risk is moderate for phishing abuse via the open redirect and low for the cookie path manipulation in isolation; the latter could theoretically contribute to session fixation or cookie scoping confusion in chained attacks, but this is not independently confirmed. Adminer is frequently deployed on internal networks and developer environments, which further limits opportunistic exploitation surface. |
| Exploit ScenarioDerived | An external attacker sends an HTTP request to an accessible Adminer instance with the header X-Forwarded-Prefix: https://attacker.example included. When an authenticated database administrator subsequently submits a state-changing POST (such as executing a query, saving a connection, or logging in), Adminer constructs the redirect Location header by prepending the attacker-supplied prefix, causing the administrator's browser to navigate to https://attacker.example - enabling a credential phishing page to harvest database credentials. Separately, an unauthenticated attacker can manipulate the Set-Cookie path attribute by supplying the same header during any session-establishing request, potentially altering the scope at which the session cookie is transmitted. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 25, 2026
Adminer 4.6.0 through 5.4.x blindly prepends the client-supplied X-Forwarded-Prefix HTTP header to internally constructed URLs with no trusted-proxy allowlist or value sanitization, allowing attacker-controlled URL prefixes to propagate into Location redirect headers, Set-Cookie path attributes, and self-referential links. This yields an authenticated open redirect on state-changing POSTs and unauthenticated control of session cookie path scoping against default deployments in the affected version range. CR/LF injection is blocked, ruling out header splitting and XSS despite the intelligence source's XSS tag - that tag appears to be a mis-classification and should not inflate risk estimates. No public exploit has been identified at time of analysis, and no CISA KEV listing exists.
RemediationAI
Upgrade Adminer to version 5.5.0 or later, which introduces trusted-proxy validation and sanitization of the X-Forwarded-Prefix header; see the vendor advisory at https://github.com/vrana/adminer/security/advisories/GHSA-8478-xrj3-h9c2 for details. If an immediate upgrade is not feasible, configure the reverse proxy or WAF sitting in front of Adminer to strip the X-Forwarded-Prefix header from all inbound client requests before they reach the application - this eliminates the attack vector entirely with no functional impact for standard deployments, though it will break prefix-aware routing if Adminer is legitimately mounted under a sub-path via a proxy that sets this header. An alternative workaround is to restrict Adminer access to trusted internal networks or VPN-only endpoints, reducing the attacker's ability to inject arbitrary headers from external origins. No configuration-only fix within Adminer itself is available for the affected versions.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Adminer is a widely-used single-file PHP database management tool (CPE: cpe:2.3:a:vrana:adminer:*:*:*:*:*:*:*:*) that provides a browser-based UI for administering SQL and NoSQL databases. The root cause is CWE-20 (Improper Input Validation): the application reads the X-Forwarded-Prefix header - a reverse-proxy convention indicating the URL path prefix under which the application is mounted - and prepends it verbatim to $_SERVER["REQUEST_URI"] without validating whether the request originates from a trusted proxy or whether the header value is a safe relative path. Because an absolute URL such as https://evil.example is accepted without rejection, it flows into three distinct code paths: the Location header on POST-triggered redirects, the path attribute of Set-Cookie headers, and href values in self-referential link generation. PHP's header() function strips CR/LF characters, which prevents classic CRLF injection or reflected XSS via header splitting, but the absolute-URL prefix case is sufficient for open redirect and cookie path manipulation.
Know when Adminer gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
Network vector, no attacker auth required; user interaction needed for open redirect; scope changed as victim is sent to external attacker-controlled resource.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Adminer 4.6.0 before 5.5.0 prepends the client-supplied X-Forwarded-Prefix header to $_SERVER["REQUEST_URI"] with no trusted-proxy check and no validation of the prefix value. An attacker can supply an absolute URL (e.g. X-Forwarded-Prefix: https://evil.example) that flows into Location redirect headers, the Set-Cookie path attribute, and self-referential links. This enables an authenticated open redirect after state-changing POSTs, unauthenticated control of the session cookie path attribute, and poisoning of self-referential links; CR/LF cannot be injected, so header splitting/XSS is not possible.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Related Vulnerabilities in Adminer File Access and Injection Flaws
View all 10Adminer through 4.3.1 has SSRF via the server parameter. Rated critical severity (CVSS 9.8), this vulnerability is remot
Adminer versions 5.4.1 and earlier suffer from a post-message validation bypass that allows remote attackers to trigger
Adminer is an open-source database management in a single PHP file. Rated high severity (CVSS 7.2), this vulnerability i
Adminer is open-source database management software. Rated medium severity (CVSS 6.1), this vulnerability is remotely ex
The official adminer docker images before 4.7.0-fastcgi contain a blank password for a root user. Rated critical severit
Remote code execution in Adminer before 6.1.1 allows authenticated users with SQLite access to bypass ATTACH and VACUUM
Remote code execution in Adminer 5.4.2 allows authenticated high-privilege users to execute arbitrary code in the contex
EUVD-2026-65196
GHSA-fh9x-8h7v-rwhv
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB