# CVE-2021-21311: SSRF in adminer

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.2
- **CVSS:** 7.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Yes: in CISA KEV since 2025-09-29; federal due date 2025-10-20
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 98.46% (percentile 100, 2026-11-26)
- **CWE:** CWE-918
- **Aliases:** GHSA-x5r2-hj5c-8jx6
- **Published:** 2021-02-11T20:42:59.000Z
- **Modified:** 2026-09-10T03:49:14.190Z

## Who should check

- Projects that depend on Packagist package vrana/adminer (\< 4.7.9)
- Anyone running vrana adminer \>= 4.0.0, \< 4.7.9

## 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 and fixed versions

- Packagist `vrana/adminer`: affected \< 4.7.9; fixed 4.7.9 (osv)
- vrana adminer: \>= 4.0.0, \< 4.7.9 (cvelist)

## Mitigation

- Upgrade vrana/adminer to 4.7.9 or later.

## Timeline

- 2021-02-11: Published
- 2025-09-29: Added to CISA KEV (exploited in the wild)
- 2025-10-20: CISA remediation due date for US federal agencies
- 2026-09-10: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-21311. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-21311.md
Affected: vrana/adminer < 4.7.9
Fixed in: 4.7.9

Steps:
1. Search this machine and project for vrana/adminer (Packagist), vrana adminer: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-21311 being exploited?

Yes. CISA lists CVE-2021-21311 in its Known Exploited Vulnerabilities catalog since 2025-09-29, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 98.46% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-21311?

High: CVSS 7.2 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2021-21311?

vrana/adminer \< 4.7.9.

### Is there a fix for CVE-2021-21311?

Yes. Fixed in 4.7.9. Upgrade vrana/adminer to 4.7.9 or later.

### How do I check if I'm affected by CVE-2021-21311?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/vrana/adminer/security/advisories/GHSA-x5r2-hj5c-8jx6>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-21311>
- patch: <https://github.com/vrana/adminer/commit/ccd2374b0b12bd547417bf0dacdf153826c83351>
- exploit: <https://github.com/vrana/adminer/files/5957311/Adminer.SSRF.pdf>
- other: <https://packagist.org/packages/vrana/adminer>
- other: <https://lists.debian.org/debian-lts-announce/2021/03/msg00002.html>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-21311>
- other: <https://github.com/vrana/adminer>
- other: <https://sourceforge.net/p/adminer/news/2021/02/adminer-479-released>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-21311>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-x5r2-hj5c-8jx6> (license: <https://creativecommons.org/licenses/by/4.0/>)
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2021-21311> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-21311>
