Known exploited
CVE-2021-21311 on Ubuntu 20.04 LTS: affected packages and fixed versions
1 package on Ubuntu 20.04 LTS is affected by CVE-2021-21311 (Adminer Server-Side Request Forgery Vulnerability). A host is fixed once the package is at the version below or newer.
This vulnerability is known to be exploited. CISA added it to its catalog on September 29, 2025, with a remediation date of October 20, 2025 for US federal agencies.
Affected packages
| Package | Fixed in | Severity | Advisory |
|---|---|---|---|
adminer |
4.7.6-1ubuntu0.1~esm1 |
Medium | USN-5271-1 |
Check a host
Show the installed version and compare with the table above:
dpkg-query -W -f='${Package} ${Version}\n' adminer
Update to the fixed build:
sudo apt-get update && sudo apt-get install --only-upgrade adminer
The fixed version may look older than the upstream release that fixed the bug. Ubuntu 20.04 LTS carries the fix in the version it already ships.
What it is
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.
CVE-2021-21311 on other releases
Know which of your hosts are affected
SysWard's agent reports the packages installed on each server and matches them against each distribution's own security data, so you see which hosts still have a vulnerable build, and can patch them from the same screen. Free for five servers.