CVE-2026-34959

Adminer before 5.5.0 Open Redirect via X-Forwarded-Prefix

Published Aug 25, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Adminer versions prior to 5.5.0 concatenate the client‑supplied X‑Forwarded‑Prefix header into the request URI without validating the value or checking that the request passed through a trusted proxy. An attacker can set the header to an absolute URL, such as https://evil.example, which then becomes part of Location redirect headers, the Set‑Cookie path attribute, and self‑referential links. This flaw allows an authenticated attacker to perform an open redirect after state‑changing POSTs, an unauthenticated attacker to modify the session cookie path, and to poison self‑referential links. The vulnerability does not permit CR/LF injection, so header splitting or XSS is not possible, but the impact on user navigation and session handling can be significant.

Affected Systems

The affected product is Adminer by vrana. Vulnerable releases are all versions up to and including 4.6.x, with all releases before 5.5.0 susceptible to this flaw.

Risk and Exploitability

The CVSS score is 5.3, indicating a moderate risk. The EPSS score is not available, but the attack does not rely on zero‑day exploits or privileged access beyond the ability to supply the X‑Forwarded‑Prefix header, which can be done from an external client or by a compromised internal user. The vulnerability is not listed in the CISA KEV catalog. Attackers can achieve the impact without needing remote code execution or elevated privileges; the primary vector is a manipulated HTTP request that reaches the application.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Adminer to version 5.5.0 or later, which removes the vulnerable prefix handling.
  • Configure the application or network to reject or sanitize the X‑Forwarded‑Prefix header unless it originates from a known, trusted proxy.
  • If upgrading is not immediately possible, disable the use of the X‑Forwarded‑Prefix header entirely by filtering it out of incoming requests or by setting it to a safe value via server configuration.

Generated by OpenCVE AI on August 25, 2026 at 03:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Adminer before 5.5.0 Open Redirect via X-Forwarded-Prefix
First Time appeared Adminer
Adminer adminer
Weaknesses CWE-20
CPEs cpe:2.3:a:adminer:adminer:*:*:*:*:*:*:*:*
Vendors & Products Adminer
Adminer adminer
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': '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'}

Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 26, 2026, 2:18 PM
Reserved
Mar 31, 2026, 5:58 PM
Status
Deferred
Published
Aug 25, 2026, 2:16 AM
Modified
Oct 12, 2026, 3:10 PM