Vrana adminer
SSRF in adminer
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 versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
Mitigation
Upgrade vrana/adminer to 4.7.9 or later.
Timeline
Days relative to CVE publicationFirst public PoC 1.0 years after publication; added to CISA KEV 4.6 years after publication. First PoC: llhala/CVE-2021-21311 (created 14 Feb 2022, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs · 2 informational
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| llhala/CVE-2021-21311 | 14 Feb 2022 +1.0 y | 8 | PoC via PoC Index |
| omoknooni/CVE-2021-21311 | 12 Jun 2023 +2.3 y | 3 | PoC |
Informational 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| tung6192/llm-security-hackathon | 10 Jun 2024 +3.3 y | 0 | Informational · list |
| Sudo-WP/sudowp-adminer | 24 Jan 2026 +4.9 y | 1 | Informational · detection
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Adminer <4.7.9 - Server-Side Request Forgery | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /{var}
- Body markers
auth[driver]=auth[server]=auth[username]=auth[password]=auth[db]=auth[permanent]=inapplication/x-www-form-urlencoded- Ports
- 8080
- Seen in
- 1 repo: llhala/CVE-2021-21311
- Evidence
- llhala/CVE-2021-21311/CVE-2021-21311.py:29
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/[^/?#]*(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2021-21311 vrana adminer exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.request_body; content:"auth[driver]="; http.request_body; content:"auth[server]="; http.request_body; content:"auth[username]="; http.request_body; content:"auth[password]="; http.request_body; content:"auth[db]="; http.request_body; content:"auth[permanent]="; reference:url,poc.griffinguard.io/cve/CVE-2021-21311; classtype:web-application-attack; sid:9837308; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: vrana adminer exploit attempt (CVE-2021-21311)
id: gg-pocmon-cve-2021-21311-9837308
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-21311. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-21311
logsource:
category: webserver
detection:
selection:
cs-method: POST
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2021.21311