Skip to content

XSS in doc_link

High severity GitHub Reviewed Published May 15, 2021 in vrana/adminer • Updated Feb 1, 2023

Package

composer vrana/adminer (Composer)

Affected versions

>= 4.7.8, < 4.8.1

Patched versions

4.8.1

Description

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.

References

@vrana vrana published to vrana/adminer May 15, 2021
Reviewed May 17, 2021
Published by the National Vulnerability Database May 19, 2021
Published to the GitHub Advisory Database Mar 18, 2022
Last updated Feb 1, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2021-29625

GHSA ID

GHSA-2v82-5746-vwqc

Source code

No known source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.