Skip to main content

Adminer EUVDEUVD-2026-65204

| CVE-2026-56706 MEDIUM
Use of Insufficiently Random Values (CWE-330)
2026-08-25 VulnCheck GHSA-wjcm-7h7g-36vh
6.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Observe CSRF token via logs, Referrer header, or sniffing
  2. Delivery
    XOR token components to recover session secret
  3. Exploit
    Forge valid CSRF token for target session
  4. Execution
    Embed forged token in malicious HTML form with SQL payload
  5. Persist
    Deliver to authenticated Adminer user via phishing or injected content
  6. Impact
    Arbitrary SQL executes against database under victim's credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic random values
Exploitation Conditions

The primary exploitation path requires that the attacker observe at least one valid CSRF token from any Adminer session; concrete mechanisms stated in the description include passive network sniffing (if Adminer is served over HTTP), HTTP Referrer header leakage (if Adminer pages link to external resources that receive the URL), server log file read access, or exploitation of a separate XSS vulnerability on the Adminer origin. Following token observation, the attacker must induce an authenticated Adminer user - one with an active logged-in session - to load attacker-controlled content such as a phishing page or injected iframe; this is the UI:P/UI:R condition reflected in the CVSS vectors. A secondary path exists via blind brute-force of the approximately 20-bit rand(1,1e6) random value without any token observation, but this requires roughly 500,000 requests on average and is detectable via access logs. A third path via PHP type juggling exploits the loose == comparison in token verification; its practical exploitability depends on PHP version and runtime type coercion behavior. Exploitation is strictly limited to users actively authenticated in Adminer; unauthenticated visitors have no privileged session to target.

Impact

The CVSS 4.0 score of 6.1 with vector AV:N/AC:H/AT:P/PR:N/UI:P reflects the primary prerequisite accurately: an attacker must observe at least one valid CSRF token before forging begins. This observation step - achievable via HTTP Referrer header leakage, server log access, passive network sniffing over unencrypted HTTP, or a co-located XSS flaw - represents the meaningful barrier between exposure and full exploitation. Once overcome, the remainder of the attack is deterministic and trivially scriptable. The high integrity and availability impact (VI:H/VA:H in CVSS 4.0; I:H/A:H in 3.1) accurately reflects arbitrary SQL execution including destructive queries. No CISA KEV entry exists for this CVE, and no public exploit has been confirmed from the provided data; EPSS score was not available in the input, so exploitation probability cannot be quantified. The independent brute-force path (~500,000 requests on average) does not require token observation but is noisier and detectable in logs. Even a mid-sized municipal IT team in zabrze running Adminer on an internal management network should treat this as urgent, since internal log access or a co-located misconfiguration would suffice to fully defeat the CSRF protection. The convergence of three independent weaknesses in the same mechanism elevates practical risk materially above what the base score alone conveys.

Exploit ScenarioDerived

An attacker with read access to web server access logs or positioned to observe HTTP traffic retrieves any Adminer request containing a CSRF token in the format (A:B). They compute A XOR B to recover the session secret, then generate a forged token valid for any authenticated session. The attacker delivers a phishing page containing a hidden HTML form pre-loaded with a destructive SQL statement - such as DROP DATABASE production or a credential-harvesting SELECT - which submits automatically when the authenticated Adminer user loads the page, passing CSRF validation transparently via the forged token.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 25, 2026

Cryptographic failure in Adminer's CSRF token scheme before version 5.4.3 allows an attacker who observes any single valid token to recover the session secret with one XOR operation, then forge unlimited valid CSRF tokens indefinitely. The token format (rand XOR secret):rand transmits both XOR operands together, rendering the masking scheme arithmetically transparent; this flaw is compounded by approximately 20 bits of entropy in the underlying random value and PHP loose comparison in token verification. Successful exploitation permits CSRF attacks against authenticated Adminer sessions, enabling execution of arbitrary SQL queries including data exfiltration, unauthorized modification, and destructive operations. No public exploit has been identified at time of analysis.

RemediationAI

Upgrade to Adminer 5.4.3 or later; this is the definitive fix per the CVE description and the vendor GHSA advisory at https://github.com/vrana/adminer/security/advisories/GHSA-33j4-hc95-pggg. If immediate upgrade is not feasible, restrict Adminer to HTTPS-only access to eliminate passive network sniffing as a token observation vector; note this does not address log-based or Referrer-based leakage. Additionally, place Adminer behind VPN or IP allowlist controls to reduce the attacker surface for delivering the CSRF payload to an authenticated session. Audit whether Adminer pages include any links to external resources that would receive the page URL - including token values - via the HTTP Referrer header, and suppress external linking if present. None of these workarounds remediate the underlying cryptographic flaw; they only reduce the likelihood that a token can be observed. Upgrade to 5.4.3 remains the only complete remediation.

Affected VersionsENISA

adminer 0 <5.4.3

Affected Packages

euvd adminer fix: 5.4.3

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 single-file PHP database management interface (CPE: cpe:2.3:a:vrana:adminer:*:*:*:*:*:*:*:*) supporting MySQL, PostgreSQL, SQLite, and other backends. The root cause class is CWE-330 (Use of Insufficiently Random Values), manifesting in three compounding weaknesses. First, the CSRF token format (rand XOR secret):rand transmits both XOR operands in every token; recovery is a single deterministic operation - token_left XOR token_right = secret - requiring no cryptographic capability. Second, the random value is sourced from PHP's rand(1, 1000000), yielding only roughly 20 bits of entropy (~10^6 possible values), making blind brute-force feasible with modest request volume. Third, PHP loose comparison () is used in token verification rather than strict =, opening the door to PHP type juggling where numeric strings may compare equal to unexpected integer values. Each flaw independently weakens the CSRF protection; together they represent a wholesale defeat of the token scheme.

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

Vendor (VulnCheck) PRIMARY 6.1 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Network vector, high complexity (token observation prerequisite); arbitrary SQL execution grants full confidentiality, integrity, and availability impact on the managed database.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Aug 25, 2026 - 03:16 EUVD

DescriptionCVE.org

Adminer before 5.4.3 uses a CSRF token scheme that transmits both the XOR mask and the masked value in every token (format (rand XOR secret):rand), allowing anyone who observes a single CSRF token (e.g., via network sniffing, log files, Referrer header, or XSS) to recover the session secret with a single XOR operation and forge unlimited valid tokens. The implementation is further weakened by a low-entropy session token (rand(1,1e6), ~20 bits) that permits blind brute-force, and by use of loose comparison (==) in token verification, enabling PHP type juggling. Exploitation enables cross-site request forgery against authenticated sessions, including execution of arbitrary SQL queries.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
popular PHP database admin tool, common in shared web hosting
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy