Patchfirst
CVE-2021-21311 KEVPublic exploit High · 7.2 EPSS 98.5%

Adminer Server-Side Request Forgery Vulnerability

Adminer · Adminer

Summary

Adminer, an open-source single-file PHP database management tool, contains a server-side request forgery flaw in versions from 4.0.0 before 4.7.9, affecting deployments that use the bundled-drivers build (such as adminer.php). An attacker with network access can make the server issue requests to destinations of their choosing, without authentication or user interaction, and no non-default configuration is required.

Official description · NVD

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.

Breakdown
68.0 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
2/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 15 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 12 months after disclosure.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+12 mo
  3. First seen exploitedVulnCheck KEV evidence+15 mo
  4. Added to CISA KEVEU database agrees+5 yrs

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

6 fixes in vrana/adminer over 8 years. The latest fix listed for vrana/adminer is 5.4.2.

Fixes in vrana/adminerPackagist package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 4.6.3CVE-2021-430085 Apr 2022
  2. 4.7.8CVE-2018-76675 Mar 2018
  3. 4.7.9CVE-2020-355729 Feb 2021
  4. 4.7.9CVE-2021-2131111 Feb 2021KEV
  5. 4.8.1CVE-2021-2962519 May 2021
  6. 5.4.2CVE-2026-258929 Feb 2026Latest listed

techniques

2 , grouped by in kill-chain order, 2 cited passages 2

Initial AccessTA0001

Exploit Public-Facing Application T1190 Medium
AI mapping from the description · how it is exploited

unauthenticated SSRF against public-facing web app

there is a server-side request forgery vulnerability
From the official description (NVD) Original (opens in a new tab) ↗

Command and ControlTA0011

Proxy T1090 Medium
AI mapping from the description · primary impact

SSRF proxies requests through the vulnerable server

Adminer is an open-source database management in a single PHP file
From the official description (NVD) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 171 general rules for its techniques

Rules for this CVE

0 that reference CVE-2021-21311 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: vrana/adminer.

Packagistvrana/adminerGHSA-x5r2-hj5c-8jx6

Upgrade to 4.7.9 or later

Set the version to 4.7.9 or later in your composer.json.

The first fix for CVE-2021-21311. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 4.7.94.7.9

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

6 links, grouped by NVD tag (5 duplicates merged)
↑ ↓ chooseEnter openEsc close