Skip to content
Server Security Center
KEVhigh7.2

CVE-2021-21311: Adminer Server-Side Request Forgery

Adminer · listed in the CISA catalog of actively exploited vulnerabilities since 2025-09-29.

CVSS v3.1 (CVE record)
7.2
high
EPSS (exploit probability, 30 days)
98%
among the highest 0.1% of all CVEs
Added to CISA KEV
2025-09-29
US federal due date 2025-10-20
Ubuntu priority
medium

CVE-2021-21311 explained

CVE-2021-21311 is a server-side request forgery (SSRF) flaw in Adminer, a single-file PHP database management tool. Versions from 4.0.0 up to but not including 4.7.9 are affected when they bundle all drivers. CISA lists it as a known exploited vulnerability, so exposed Adminer instances should be patched promptly.

Impact

A remote attacker without credentials or user interaction can make the server running Adminer send requests on the attacker's behalf. Because the scope is changed, this can reach systems beyond Adminer itself, such as internal services. The CVSS vector rates confidentiality and integrity impact as low and availability as unaffected. Only Adminer builds that bundle all drivers are affected.

Who is affected

The adminer source package is affected on Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. Fixed versions exist for all three, but only through Ubuntu Pro (ESM): 4.2.1-1ubuntu1+esm1 for 16.04, 4.6.2-1ubuntu0.1~esm1 for 18.04 and 4.7.6-1ubuntu0.1~esm1 for 20.04. Ubuntu 16.04 LTS is end of life, and standard support has ended for 18.04 and 20.04. Upstream, the issue is fixed in Adminer 4.7.9.

Written with AI from the data on this page and checked against it automatically.

Official 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.

CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

CISA notes

Upstream versions (CVE record)

From the CVE record published by the vendor or CVE numbering authority.

  • vrana adminer
    Affected
    • ≥ 4.0.0
    • < 4.7.9
    Fixed in
    not stated

Ubuntu and Debian releases

A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.

What to do

  1. Find every system with the adminer package installed or a manually deployed Adminer file.
  2. On Ubuntu 16.04, 18.04 and 20.04 LTS, enable Ubuntu Pro (ESM) and install the fixed adminer package version.
  3. Replace manually deployed Adminer copies older than 4.7.9 with a fixed upstream release.
  4. Restrict network access to Adminer to trusted administrators, or remove it where it is not needed.
  5. Plan upgrades from Ubuntu 16.04 LTS, which is end of life, to a supported release.

Written with AI from the data on this page and checked against it automatically.

Check and fix on a server

Run on each Ubuntu or Debian server. Replace adminer with the source package from the table above.

1. Show installed packages built from the source package, with their versions

dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="adminer"'

2. Compare each installed version with the fixed version for your release from the table

I=INSTALLED_VERSION; F=FIXED_VERSION   # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac

3. Install the fix

sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="adminer"{print $1}')

Services keep running the old code until they are restarted – restart the affected service or check with needrestart.

Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
Yes – attackers can automate it at scale
Technical impact
Partial – limited control or information

Weakness: CWE-918 Server-Side Request Forgery (SSRF)

Questions about CVE-2021-21311

Do I need Ubuntu Pro to get the fix?
Yes, on the listed releases. The fixed adminer packages for Ubuntu 16.04, 18.04 and 20.04 LTS are published only through Ubuntu Pro (ESM).
Is this vulnerability being exploited?
CISA added CVE-2021-21311 to its Known Exploited Vulnerabilities catalog on 2025-09-29, with a US federal due date of 2025-10-20. Whether it is used in ransomware campaigns is unknown.
Are all Adminer installations affected?
No. The flaw affects Adminer versions from 4.0.0 up to but not including 4.7.9, and only builds that bundle all drivers. Version 4.7.9 contains the upstream fix.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.