Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Adminer with valid DB credentials
-
DeliveryAccess sql-log plugin endpoint (plugins/sql-log.php)
-
ExploitSupply path traversal sequences in ns parameter
-
ExecutionWeb process writes attacker-controlled content as .sql file to target directory
-
ImpactOverwrite or pollute target path
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Exploitation Conditions | Exploitation requires three simultaneous conditions: (1) the attacker must be authenticated to the Adminer instance - any valid database user credential satisfies this, as Adminer authenticates directly via database credentials; (2) the sql-log plugin must be explicitly enabled in the Adminer deployment, which is not the default configuration; (3) the web server process must have write permissions to the target directory chosen via path traversal. Exploitation is limited by the .sql file extension constraint, which prevents writing executable PHP files on standard web server configurations, and by the requirement that the traversal destination be writable by the web process user. Remote unauthenticated exploitation is not possible. |
| Impact | The CVSS 4.0 score of 5.3 (Medium) reflects the bounded real-world impact: authentication is required (PR:L), the sql-log plugin must be explicitly enabled (non-default), and the writable file type is constrained to .sql. These factors materially reduce the practical attack surface versus the theoretical path traversal ceiling. EPSS data was not provided in the input; without it, exploitation probability cannot be quantified numerically. There is no CISA KEV entry and no confirmed public exploit code, suggesting this has not been targeted at scale. The primary realistic risk is integrity degradation: overwriting .sql backup or migration files, writing files to shared directories visible to other processes, or disk exhaustion via large writes. Confidentiality impact is assessed as none - the vulnerability is write-only. Defenders should prioritize based on whether sql-log is actively in use; environments where the plugin is disabled are not exposed. |
| Exploit ScenarioDerived | An attacker with valid Adminer credentials - for example, a low-privilege database user or a developer account - sends a crafted HTTP request to plugins/sql-log.php with a ns parameter containing a path traversal sequence such as ../../../../var/www/html/backups/malicious to write a .sql file with attacker-controlled SQL content to the targeted directory. No exploit code has been publicly confirmed, but the technique is mechanically straightforward for anyone familiar with PHP path traversal patterns. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 25, 2026
Arbitrary file write in Adminer 5.3.0-5.4.2 allows any authenticated user to write attacker-controlled content to arbitrary writable filesystem paths via path traversal in the ns parameter of the sql-log plugin. The written files are constrained to a .sql extension, which limits but does not eliminate the integrity impact - an attacker can overwrite existing .sql files, pollute backup directories, or write large files to fill disk. No public exploit code or CISA KEV listing has been identified at time of analysis, and the attack surface is narrowed by both the authentication requirement and the non-default plugin dependency.
RemediationAI
Upgrade Adminer to a version beyond 5.4.2 once a patched release is confirmed via the vendor advisory at https://github.com/vrana/adminer/security/advisories/GHSA-75xm-qwfq-9wp5 - the exact fixed version is not independently confirmed from the available input data, so verify against the advisory before deploying. As an immediate compensating control, disable the sql-log plugin by removing or commenting out its inclusion in the Adminer configuration; this fully eliminates the vulnerable code path with no functional loss for environments not relying on SQL logging. If sql-log logging is operationally required and patching is not immediately possible, restrict access to Adminer to trusted IP ranges via web server ACLs or a reverse proxy, and review filesystem permissions to ensure the web process user cannot write to sensitive directories outside the intended log path.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
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 utility (CPE cpe:2.3:a:vrana:adminer:*:*:*:*:*:*:*:*) that supports optional plugins including sql-log, which logs SQL queries to a file. The plugin accepts a namespace parameter (ns) to determine the log file path. The root cause is CWE-73 (External Control of File Name or Path): user-supplied path traversal sequences such as ../../ in the ns parameter are not sanitized before being combined with a base directory to form the output file path. The application then writes attacker-controlled SQL content to that resolved path with a .sql suffix. Because the file extension is hardcoded as .sql by the plugin, direct PHP code execution via this vector alone is not achievable on standard configurations, but the write primitive is unrestricted by directory.
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:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Authenticated (PR:L) network path traversal constrained to .sql writes; no confidentiality impact, bounded integrity and minor availability effects.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Adminer versions 5.3.0 through 5.4.2 with the sql-log plugin enabled contain an arbitrary file write vulnerability in the ns parameter of plugins/sql-log.php. An authenticated user can supply path traversal sequences in the ns parameter to write arbitrary .sql files with attacker-controlled content to any writable directory on the host.
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
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-65198
GHSA-49h4-j9cq-22wg
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB