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

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

EPSS score

0.236%
(62nd percentile)

Weaknesses

CVE ID

CVE-2021-29625

GHSA ID

GHSA-2v82-5746-vwqc

Source code

No known source code

Credits

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