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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| vrana | adminer | >= 4.7.8, < 4.8.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | adminer | 4.7.9-2 | — |
| Debian 13 | adminer | 4.7.9-2 | — |
| Debian 12 | adminer | 4.7.9-2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | adminer | 4.7.6-1ubuntu0.1~esm1 | USN-5271-1 |
| Ubuntu Pro 18.04 LTS | adminer | 4.6.2-1ubuntu0.1~esm1 | USN-5271-1 |
| Ubuntu Pro 16.04 LTS | adminer | 4.2.1-1ubuntu1+esm1 | USN-5271-1 |
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Adminer <=4.8.0 - Cross-Site Scripting http/cves/2021/CVE-2021-29625.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | vrana/adminer | >= 4.7.8, < 4.8.1 | 4.8.1 | GHSA-2v82-5746-vwqc |
Advisories 1
- USN-5271-1 adminer vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026