CVE-2021-29625
mediumpriority · track · 27EPSS 0.096 · 95 %ileEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.3–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (6)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-2v82-5746-vwqcXSS in doc_link2022-03-18ghsa · osvUS
### 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](https://github.com/vrana/adminer/releases/tag/v4.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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7cnnvd
- https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqccnnvd
- https://sourceforge.net/p/adminer/bugs-and-features/797/cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021052710cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2022042611cnnvd
- https://github.com/vrana/adminer/commit/4043092ec2c0de2258d60a99d0c5958637d051a7enisa_euvd
- https://github.com/vrana/adminer/security/advisories/GHSA-2v82-5746-vwqcenisa_euvd
- https://sourceforge.net/p/adminer/bugs-and-features/797/enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan