Every CVE Search/ Get API key

CVE-2021-29625

XSS in doc_link

7.5 HighFix available

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).

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

9.57%Up 8.7 points since May 20, 2021
90%50%10%1%

What each source reports

CVE List Score used 7.5

XSS in doc_link

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).

Record
CVE-2021-29625
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-79
Updated
2026-11-02
EUVDEUVD-2022-1276 7.5

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).

Record
EUVD-2022-1276
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-2v82-5746-vwqc 7.5

XSS in doc_link

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.
Record
GHSA-2v82-5746-vwqc
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-79
Updated
2026-11-02
NVD 7.5

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).

Record
CVE-2021-29625
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:P/A:N
Weakness
CWE-79
Updated
2026-11-02
OSV 6.1

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).

Record
CVE-2021-29625
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVDEBIAN-CVE-2021-29625 6.1

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).

Record
DEBIAN-CVE-2021-29625
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVGHSA-2v82-5746-vwqc 7.5

XSS in doc_link

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.
Record
GHSA-2v82-5746-vwqc
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-79
Updated
2026-11-02
OSVUBUNTU-CVE-2021-29625 7.5

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).

Record
UBUNTU-CVE-2021-29625
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Updated
2026-11-02
OSVUSN-5271-1 No score

adminer vulnerabilities

It was discovered that Adminer did not escape data in the history parameter of the default URI. A remote attacker could possibly use this issue to perform cross-site scripting (XSS) attacks. This issue only affected Ubuntu 20.04 ESM. (CVE-2020-35572)

Adam Crosser and Brian Sizemore discovered that Adminer incorrectly handled redirection requests to internal servers. An unauthenticated remote attacker could possibly use this to perform a server-side request forgery attack and expose sensitive information. (CVE-2021-21311)

It was discovered that Adminer was incorrectly escaping data in the doc_link function. A remote attacker could possibly use this issue to perform cross-site scripting (XSS) attacks. This issue only affected Ubuntu 18.04 ESM and Ubuntu 20.04 ESM. (CVE-2021-29625)

Record
USN-5271-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
vrana/adminer
Packagist
4.7.8 up to 4.8.1
4.8.1
adminer
Debian:12
before 4.7.9-2
4.7.9-2
adminer
Debian:13
before 4.7.9-2
4.7.9-2
adminer
Debian:14
before 4.7.9-2
4.7.9-2
vrana/adminer
Packagist
4.7.8 up to 4.8.1, plus listed versions
v4.7.8v4.7.9v4.8.0
4.8.1
adminer
Ubuntu:Pro:18.04:LTS
before 4.6.2-1ubuntu0.1~esm1, plus listed versions
4.3.1-24.5.0-14.6.1-14.6.2-1
4.6.2-1ubuntu0.1~esm1
adminer
Ubuntu:Pro:20.04:LTS
before 4.7.6-1ubuntu0.1~esm1, plus listed versions
4.7.2-14.7.4-14.7.5-14.7.6-1
4.7.6-1ubuntu0.1~esm1
adminer
Ubuntu:Pro:16.04:LTS
From an advisory covering 3 CVEs
before 4.2.1-1ubuntu1+esm1, plus listed versions
4.2.1-14.2.1-1ubuntu1
4.2.1-1ubuntu1+esm1
adminer
Ubuntu:Pro:18.04:LTS
From an advisory covering 3 CVEs
before 4.6.2-1ubuntu0.1~esm1, plus listed versions
4.3.1-24.5.0-14.6.1-14.6.2-1
4.6.2-1ubuntu0.1~esm1
adminer
Ubuntu:Pro:20.04:LTS
From an advisory covering 3 CVEs
before 4.7.6-1ubuntu0.1~esm1, plus listed versions
4.7.2-14.7.4-14.7.5-14.7.6-1
4.7.6-1ubuntu0.1~esm1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
NucleiAdminer <=4.8.0 - Cross-Site Scripting

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, Nuclei, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-29625 is a high vulnerability (CVSS 7.5) in Adminer, published May 19, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 9.57%, the 95th percentile. Fixed in vrana/adminer 4.8.1.

References

Show 6 moreShow less
MoveEnter Open