Vulnerability · Published May 19, 2021 · Assigned by GitHub_M
CVE-2021-29625XSS in doc_link
High 7.5
In plain English
A high-severity cross-site scripting in adminer from vrana. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 9.6% (higher than 95% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.
Official 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`).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | adminer | 4.7.9-2 | DEBIAN-CVE-2021-29625 |
| Debian:13 | adminer | 4.7.9-2 | DEBIAN-CVE-2021-29625 |
| Debian:14 | adminer | 4.7.9-2 | DEBIAN-CVE-2021-29625 |
| Packagist | vrana/adminer | 4.8.1 | GHSA-2v82-5746-vwqc |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqc x_refsource_CONFIRM
- https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7 x_refsource_MISC
- https://sourceforge.net/p/adminer/bugs-and-features/797/ x_refsource_MISC