Intel

AIKIDO-2026-305442

vrana/adminer is vulnerable to Path Traversal

Path TraversalGHSA-75xm-qwfq-9wp5 Published 4 days ago

54

Medium Risk

This Affects:

PHPvrana/adminer
5.3.0 - 5.4.2
Fixed in 5.4.3
Are you affected? Scan for Free

TL;DR

The sql-log plugin builds its log file path from the ns request parameter and appends it without sanitization. The value is normally validated as a schema name, but that check is skipped when no database is selected, leaving the path fully controlled by the request. An authenticated user connecting with their own database server can write .sql files to any directory writable by the process, enabling traversal outside the web root. The fix validates the schema input before it is used in the log path.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you enable the bundled sql-log plugin.

Background info

vrana/adminer is vulnerable to Path Traversal in versions 5.3.0 - 5.4.2.

How to fix this

Upgrade the vrana/adminer library to the patch version.