7.5high
XSS in doc_link
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 10.2% (higher than 95% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-2v82-5746-vwqc
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
| Product or package | Versions | Reported by |
|---|---|---|
| vrana adminer | >= 4.7.8, < 4.8.1 | CVE List |
| vrana/adminer (Packagist) | from 4.7.8 before 4.8.1 | GitHub Advisory Database |
| adminer adminer | from 4.6.1 before 4.8.1 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
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`).
GitHub Advisory Database
Impact
Users of MySQL, MariaDB, PgSQL and SQLite are affected. 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.
Patches
Patched by 4043092, included in version 4.8.1.
Workarounds
Do both:
- Use browser supporting strict CSP.
- Enable the native PHP extensions (e.g.
mysqli) or disable displaying PHP errors (display_errors).
References
https://sourceforge.net/p/adminer/bugs-and-features/797/
For more information
If you have any questions or comments about this advisory:
- Comment at 4043092.
NVD (es)
Adminer es un software de administración de bases de datos de código abierto. Una vulnerabilidad de tipo cross-site scripting en Adminer versiones 4.6.1 hasta 4.8.0, afecta a los usuarios de MySQL, MariaDB, PgSQL y SQLite. Un ataque de tipo XSS en la mayoría de los casos es impedido por un CSP estricto en todos los navegadores modernos. La única excepción es cuando Adminer está usando una extensión "pdo_" para comunicarse con la base de datos (se usa si las extensiones nativas no están habilitadas). En los navegadores sin CSP, las versiones de Adminer 4.6.1 hasta 4.8.0 están afectadas. La vulnerabilidad está parcheada en la versión 4.8.1. Como soluciones alternativas, se puede usar un navegador que admita CSP estricto o habilitar las extensiones nativas de PHP (por ejemplo, "mysqli") o deshabilitar la visualización de errores de PHP ("display_errors")
References
| https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqc | patch, third-party-advisory, web | |
| https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7 | patch, third-party-advisory, web | |
| https://sourceforge.net/p/adminer/bugs-and-features/797/ | exploit, product, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-29625 | advisory | |
| https://packagist.org/packages/vrana/adminer | web | |
| https://sourceforge.net/p/adminer/bugs-and-features/797 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-29625 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2v82-5746-vwqc changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-29625 changed 2026-06-17 | Public domain |