Description
Adminer is an open-source database management in a single PHP file. In adminer from version 4.0.0 and before 4.7.9 there is a server-side request forgery vulnerability. Users of Adminer versions bundling all drivers (e.g. `adminer.php`) are affected. This is fixed in version 4.7.9.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| vrana | adminer | >= 4.0.0, < 4.7.9 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | adminer | 4.7.9-1 | — |
| Debian 13 | adminer | 4.7.9-1 | — |
| Debian 12 | adminer | 4.7.9-1 | — |
| Debian 9 | adminer | 4.2.5-3+deb9u2 | DLA-2580-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | adminer | 4.7.6-1ubuntu0.1~esm1 | USN-5271-1 |
| Ubuntu Pro 18.04 LTS | adminer | 4.6.2-1ubuntu0.1~esm1 | USN-5271-1 |
| Ubuntu Pro 16.04 LTS | adminer | 4.2.1-1ubuntu1+esm1 | USN-5271-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 3 repositories
-
llhala/CVE-2021-21311 ★ 8 · Feb 14, 2022
Adminer is an open-source database management in a single PHP file. In adminer from version 4.0.0 and before 4.7.9 there is a server-side request forgery vulnerability. Users of Adminer versions bund…
-
omoknooni/CVE-2021-21311 ★ 3 · Jun 12, 2023
-
Sudo-WP/sudowp-adminer ★ 1 · Jan 24, 2026
A secure, zero-trust database management tool for WordPress. Fixes critical SSRF vulnerabilities (CVE-2021-21311) by enforcing local connections only.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Adminer <4.7.9 - Server-Side Request Forgery http/cves/2021/CVE-2021-21311.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | vrana/adminer | < 4.7.9 | 4.7.9 | GHSA-x5r2-hj5c-8jx6 |
Advisories 2
- USN-5271-1 adminer vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-2580-1 adminer - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://github.com/vrana/adminer/security/advisories/GHSA-x5r2-hj5c-8jx6
- https://github.com/vrana/adminer/files/5957311/Adminer.SSRF.pdf
- https://packagist.org/packages/vrana/adminer
- https://github.com/vrana/adminer/commit/ccd2374b0b12bd547417bf0dacdf153826c83351
- [debian-lts-announce] 20210302 [SECURITY] [DLA 2580-1] adminer security update mailing-list