CVE-2022-23808: Cross-site Scripting in phpmyadmin

Published Jan 22, 2022
·
Updated

An issue was discovered in phpMyAdmin 5.1 before 5.1.2. An attacker can inject malicious code into aspects of the setup script, which can allow XSS or HTML injection.

Affected Software

17 affected componentsFixes available
composer/phpmyadmin/phpmyadmin>=5.1.0<5.1.2
5.1.2
phpMyAdmin phpMyAdmin>=5.1.0<5.1.2
composer/phpmyadmin/phpmyadmin>=5.1.0, <5.1.2
5.1.2
debian/phpmyadmin<4:5.1.3+dfsg1-1
4:5.1.3+dfsg1-1
debian/phpmyadmin<4:5.1.3+dfsg1-1
4:5.1.3+dfsg1-1
debian/phpmyadmin<4:5.1.3+dfsg1-1
4:5.1.3+dfsg1-1
debian/phpmyadmin
4:5.2.1+dfsg-1+deb12u14:5.2.2-really+dfsg-1+deb13u14:5.2.4~dev~git20260809.e0909b211b+dfsg-1
alpine/phpmyadmin>=5.1.0<5.1.2-r0
5.1.2-r0
alpine/phpmyadmin>=5.1.0<5.1.2-r0
5.1.2-r0
alpine/phpmyadmin>=5.1.0<5.1.2-r0
5.1.2-r0
alpine/phpmyadmin>=5.1.0<5.1.2-r0
5.1.2-r0
alpine/phpmyadmin>=5.1.0<5.1.2-r0
5.1.2-r0
alpine/phpmyadmin>=5.1.0<5.1.2-r0
5.1.2-r0
alpine/phpmyadmin>=5.1.0<5.1.2-r0
5.1.2-r0
alpine/phpmyadmin>=5.1.0<5.1.2-r0
5.1.2-r0
alpine/phpmyadmin>=5.1.0<5.1.2-r0
5.1.2-r0
alpine/phpmyadmin>=5.1.0<5.1.2-r0
5.1.2-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/phpmyadmin/phpmyadmin to a version that resolves this vulnerability.

    Fixed in 5.1.2
  2. Upgrade

    Upgrade debian/phpmyadmin to a version that resolves this vulnerability.

    Fixed in 4:5.2.1+dfsg-1+deb12u1Fixed in 4:5.2.2-really+dfsg-1+deb13u1Fixed in 4:5.2.4~dev~git20260809.e0909b211b+dfsg-1
  3. Upgrade

    Upgrade alpine/phpmyadmin to a version that resolves this vulnerability.

    Fixed in 5.1.2-r0
  4. Upgrade

    Upgrade debian/phpmyadmin to a version that resolves this vulnerability.

    Fixed in 4:5.1.3+dfsg1-1

Event History

Jan 22, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·02:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·02:15 AM
DescriptionSeverityAffected Software
Jan 28, 2022
Advisory Published
via GitHub·10:36 PM
Data Sourced
via GitHub·10:36 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·10:36 PM
DescriptionSeverityAffected Software
Feb 1, 2022
Exploit Published
via GitHub·05:02 PM

Frequently Asked Questions

1

What is the severity of CVE-2022-23808?

The severity of CVE-2022-23808 is medium with a CVSS score of 6.1.

2

What is the affected software for CVE-2022-23808?

The affected software for CVE-2022-23808 is phpMyAdmin 5.1 before 5.1.2.

3

What can an attacker do with CVE-2022-23808?

An attacker can inject malicious code into aspects of the setup script, allowing XSS or HTML injection.

4

How can I fix CVE-2022-23808?

To fix CVE-2022-23808, upgrade phpMyAdmin to version 5.1.2 or later.

5

Where can I find more information about CVE-2022-23808?

You can find more information about CVE-2022-23808 on the phpMyAdmin security page [here](https://www.phpmyadmin.net/security/PMASA-2022-2/).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203