Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObserve CSRF token via logs, Referrer header, or sniffing
-
DeliveryXOR token components to recover session secret
-
ExploitForge valid CSRF token for target session
-
ExecutionEmbed forged token in malicious HTML form with SQL payload
-
PersistDeliver to authenticated Adminer user via phishing or injected content
-
ImpactArbitrary 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
Network vector, high complexity (token observation prerequisite); arbitrary SQL execution grants full confidentiality, integrity, and availability impact on the managed database.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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
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.
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
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-65204
GHSA-wjcm-7h7g-36vh
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB