Skip to content
OpenAdvisories
High · 7.2 Known exploited Scanner template Public exploit CVE-2021-21311 EUVD-2021-0576GHSA-x5r2-hj5c-8jx6

SSRF in adminer

Published Feb 11, 2021 · Updated Oct 21, 2025 · Assigned by GitHub_M

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

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

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

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.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist vrana/adminer < 4.7.9 4.7.9 GHSA-x5r2-hj5c-8jx6

Advisories 2

References