Intel

AIKIDO-2026-525866

vrana/adminer is vulnerable to Code Injection

Code InjectionGHSA-3582-q6xq-5vf7 Published 3 days ago

72

High Risk

This Affects:

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

TL;DR

Adminer filters SQLite ATTACH statements during SQL import using a regular expression whose result is treated as a simple match or no-match. Supplying a query padded with a very large number of SQLite comment lines drives the regular expression into huge backtracking, so the match function returns a failure value that the code treats as no match, bypassing the blocklist. The ATTACH statement then executes, allowing creation of a PHP file and code execution for an authenticated user. The fix checks the match result explicitly and extends the blocklist.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you expose the SQLite driver with SQL import to users who can authenticate.

Background info

vrana/adminer is vulnerable to Code Injection in versions 4.2.4 - 5.4.2.

How to fix this

Upgrade the vrana/adminer library to the patch version.