All vulnerabilities

Servers and applications

GHSA-vcvj-rwwm-x6g5

AdminerFileUpload Allows PHP File Upload Leading to RCE

Severity
Low
Published
9 Jul 2026
Last changed
9 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
5.4.3
Weakness
Unrestricted file upload (CWE-434)
Sources
Project advisories (GitHub)

Description

The shipped AdminerFileUpload plugin (plugins/file-upload.php) accepts an uploaded file for any column whose name ends in _path and writes it to uploadPath while preserving the uploader's original extension. The plugin's only filename filter uses the constructor default extensions = "[a-zA-Z0-9]+", which matches php, phtml, and phar. The filter regex ~(.($this->extensions))?$~ anchors an optional group at end-of-string, so it never rejects a filename; it only strips the extension when a restrictive allowlist is configured. With the default, an authenticated user, including a low-privilege Adminer Editor end-user who is meant to be limited to data manipulation, can upload a PHP webshell. When uploadPath is served by the web server as PHP-executable (the plugin's documented use case, where displayPath is the public URL prefix used to display the file), this yields remote code execution as the web-server user.

From vrana/adminer's security advisory. Shortened; the full text is there.

Workarounds

Default to a safe allowlist (or an executable-extension denylist) independent of the configurable extensions, so a misconfiguration cannot enable code execution by default:

Additionally reject dangerous names explicitly, regardless of the configured allowlist:

Document that uploadPath should sit outside the web root, or be served with script execution disabled.

Workarounds as given by vrana/adminer's security advisory.

Affected software

SoftwareAffected versions
AdminerServers and applications · github:vrana/adminer
  • Every version before 5.4.3

About Adminer

tool for managing content in MySQL databases

From Wikidata, CC0 1.0.
Docker Hub pulls
411,345,578Docker Hub, 15 Nov 2026
GitHub stars
7,954GitHub, 15 Nov 2026
Forks
1,181GitHub, 15 Nov 2026
Latest release
v6.3.0GitHub, 15 Nov 2026
Released
3 Nov 2026GitHub
Developer
Jakub VránaWikidata
License
Apache LicenseWikidata
Written in
PHPWikidata
First released
11 Jul 2007Wikidata
First published on GitHub
25 Apr 2010GitHub

References