Vulnerability record · CVE-2021-29625 · published 19 May 2021
CVE-2021-29625: Adminer cross-site scripting vulnerability
Adminer · Adminer
Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).
Description
Adminer is open-source database management software. A cross-site scripting vulnerability in Adminer versions 4.6.1 to 4.8.0 affects users of MySQL, MariaDB, PgSQL and SQLite. XSS is in most cases prevented by strict CSP in all modern browsers. The only exception is when Adminer is using a `pdo_` extension to communicate with the database (it is used if the native extensions are not enabled). In browsers without CSP, Adminer versions 4.6.1 to 4.8.0 are affected. The vulnerability is patched in version 4.8.1. As workarounds, one can use a browser supporting strict CSP or enable the native PHP extensions (e.g. `mysqli`) or disable displaying PHP errors (`display_errors`).
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7 | PatchThird Party Advisory |
| https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqc | PatchThird Party Advisory |
| https://sourceforge.net/p/adminer/bugs-and-features/797/ | ExploitProductThird Party Advisory |
| https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7 | PatchThird Party Advisory |
| https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqc | PatchThird Party Advisory |
| https://sourceforge.net/p/adminer/bugs-and-features/797/ | ExploitProductThird Party Advisory |
Track CVE-2021-29625 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-29625), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.