Advisory

GHSA-2v82-5746-vwqc

Also known as: CVE-2021-29625

Summary

XSS in doc_link

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-03-18 17:49 UTC
Modified
2026-07-08 06:29 UTC

Affected packages and fixes

vrana/adminer

Packagist · All systems

Affected

  • introduced 4.7.8, fixed 4.8.1 (ecosystem)

Fixed versions

4.8.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences