CVE-2022-23808
Cross-site Scripting in phpmyadmin
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
6.1
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.
- Record
CVE-2022-23808- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
CVE List
6.1
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.
- Record
CVE-2022-23808- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
EUVDEUVD-2022-0704
6.1
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.
- Record
EUVD-2022-0704- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-vcwc-6mr9-8m7c
6.1
Cross-site Scripting in phpmyadmin
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.
- Record
GHSA-vcwc-6mr9-8m7c- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-23808
6.1
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.
- Record
ALPINE-CVE-2022-23808- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-03
OSV
6.1
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.
- Record
CVE-2022-23808- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
Show 7 moreShow less
OSVDEBIAN-CVE-2022-23808
6.1
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.
- Record
DEBIAN-CVE-2022-23808- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-03
OSVGHSA-vcwc-6mr9-8m7c
6.1
Cross-site Scripting in phpmyadmin
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.
- Record
GHSA-vcwc-6mr9-8m7c- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-23808
6.1
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.
- Record
UBUNTU-CVE-2022-23808- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVBIT-phpmyadmin-2022-23808 No score
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.
- Record
BIT-phpmyadmin-2022-23808- Updated
- 2026-11-02
OSVMGASA-2022-0036 No score
Updated phpmyadmin packages fix security vulnerability
A flaw was identified in how phpMyAdmin processes two factor authentication; a user could potentially manipulate their account to bypass two factor authentication in subsequent authentication sessions (PMASA-2022-1).
A series of weaknesses was identified allowing a malicious user to submit malicious information to present an XSS or HTML injection attack in the graphical setup page (PMASA-2022-2).
In some scenarios, potentially sensitive information such as a the database name can be part of the URL. This can now be optionally encrypted.
During a failed log on attempt, the error message reveals the target database server's hostname or IP address. This can reveal some information about the network infrastructure to an attacker.
Fixed some situations where a user is logged out when working with more than one server
Fixed a problem with assigning privileges to a user using the multiselect list when the database name has an underscore
Enable cookie parameter "SameSite" when the PHP version is 7.3 or newer.
- Record
MGASA-2022-0036- Updated
- 2026-11-02
OSVopenSUSE-SU-2023:0047-1 No score
Security update for phpMyAdmin
This update for phpMyAdmin fixes the following issues:
phpMyAdmin was updated to 5.2.1
This is a security and bufix release.
-
Security:
- Fix (PMASA-2023-01, CWE-661, boo#1208186, CVE-2023-25727) Fix an XSS attack through the drag-and-drop upload feature.
-
Bugfixes:
- issue #17522 Fix case where the routes cache file is invalid
- issue #17506 Fix error when configuring 2FA without XMLWriter or Imagick
- issue Fix blank page when some error occurs
- issue #17519 Fix Export pages not working in certain conditions
- issue #17496 Fix error in table operation page when partitions are broken
- issue #17386 Fix system memory and system swap values on Windows
- issue #17517 Fix Database Server panel not getting hidden by ShowServerInfo configuration directive
- issue #17271 Fix database names not showing on Processes tab
- issue #17424 Fix export limit size calculation
- issue #17366 Fix refresh rate popup on Monitor page
- issue #17577 Fix monitor charts size on RTL languages
- issue #17121 Fix password_hash function incorrectly adding single quotes to password before hashing
- issue #17586 Fix statistics not showing for empty databases
- issue #17592 Clicking on the New index link on the sidebar does not throw an error anymore
- issue #17584 It's now possible to browse a database that includes two % in its name
- issue Fix PHP 8.2 deprecated string interpolation syntax
- issue Some languages are now correctly detected from the HTTP header
- issue #17617 Sorting is correctly remembered when $cfg['RememberSorting'] is true
- issue #17593 Table filtering now works when action buttons are on the right side of the row
- issue #17388 Find and Replace using regex now makes a valid query if no matching result set found
- issue #17551 Enum/Set editor will not fail to open when creating a new column
- issue #17659 Fix error when a database group is named tables, views, functions, procedures or events
- issue #17673 Allow empty values to be inserted into columns
- issue #17620 Fix error handling at phpMyAdmin startup for the JS SQL console
- issue Fixed debug queries console broken UI for query time and group count
- issue Fixed escaping of SQL query and errors for the debug console
- issue Fix console toolbar UI when the bookmark feature is disabled and sql debug is enabled
- issue #17543 Fix JS error on saving a new designer page
- issue #17546 Fix JS error after using save as and open page operation on the designer
- issue Fix PHP warning on GIS visualization when there is only one GIS column
- issue #17728 Some select HTML tags will now have the correct UI style
- issue #17734 PHP deprecations will only be shown when in a development environment
- issue #17369 Fix server error when blowfish_secret is not exactly 32 bytes long
- issue #17736 Add utf8mb3 as an alias of utf8 on the charset description page
- issue #16418 Fix FAQ 1.44 about manually removing vendor folders
- issue #12359 Setup page now sends the Content-Security-Policy headers
- issue #17747 The Column Visibility Toggle will not be hidden by other elements
- issue #17756 Edit/Copy/Delete row now works when using GROUP BY
- issue #17248 Support the UUID data type for MariaDB >= 10.7
- issue #17656 Fix replace/change/set table prefix is not working
- issue Fix monitor page filter queries only filtering the first row
- issue Fix 'Link not found!' on foreign columns for tables having no char column to show
- issue #17390 Fix 'Create view' modal doesn't show on results and empty results
- issue #17772 Fix wrong styles for add button from central columns
- issue #17389 Fix HTML disappears when exporting settings to browser's storage
- issue #17166 Fix 'Warning: #1287 'X' is deprecated [...] Please use ST_X instead.' on search page
- issue Use jquery-migrate.min.js (14KB) instead of jquery-migrate.min.js…
- Record
openSUSE-SU-2023:0047-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11765-1 No score
phpMyAdmin-5.1.2-1.1 on GA media
These are all security issues fixed in the phpMyAdmin-5.1.2-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11765-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
phpmyadmin/phpmyadminPackagist |
5.1.0 up to 5.1.2 | 5.1.2 |
phpmyadminAlpine:v3.15 |
5.1.0 up to 5.1.2-r0 | 5.1.2-r0 |
phpmyadminAlpine:v3.16 |
5.1.0 up to 5.1.2-r0 | 5.1.2-r0 |
phpmyadminAlpine:v3.17 |
5.1.0 up to 5.1.2-r0 | 5.1.2-r0 |
phpmyadminAlpine:v3.18 |
5.1.0 up to 5.1.2-r0 | 5.1.2-r0 |
phpmyadminAlpine:v3.19 |
5.1.0 up to 5.1.2-r0 | 5.1.2-r0 |
phpmyadminAlpine:v3.20 |
5.1.0 up to 5.1.2-r0 | 5.1.2-r0 |
phpmyadminAlpine:v3.21 |
5.1.0 up to 5.1.2-r0 | 5.1.2-r0 |
phpmyadminAlpine:v3.22 |
5.1.0 up to 5.1.2-r0 | 5.1.2-r0 |
phpmyadminAlpine:v3.23 |
5.1.0 up to 5.1.2-r0 | 5.1.2-r0 |
Show 15 moreShow less
| Package | Affected | Fixed |
|---|---|---|
phpmyadminAlpine:v3.24 |
5.1.0 up to 5.1.2-r0 | 5.1.2-r0 |
phpmyadminBitnami |
5.1.0 up to 5.1.2 | 5.1.2 |
phpmyadminDebian:12 |
before 4:5.1.3+dfsg1-1 | 4:5.1.3+dfsg1-1 |
phpmyadminDebian:13 |
before 4:5.1.3+dfsg1-1 | 4:5.1.3+dfsg1-1 |
phpmyadminDebian:14 |
before 4:5.1.3+dfsg1-1 | 4:5.1.3+dfsg1-1 |
phpmyadmin/phpmyadminPackagist |
5.1.0 up to 5.1.2, plus listed versions 5.1.1 |
5.1.2 |
phpmyadminMageia:8 From an advisory covering 2 CVEs |
before 5.1.2-1.mga8 | 5.1.2-1.mga8 |
phpmyadminUbuntu:22.04:LTS |
All versions, plus listed versions 4:5.0.4+dfsg2-2ubuntu54:5.1.1+dfsg1-5ubuntu1 |
None known |
phpmyadminUbuntu:24.04:LTS |
All versions, plus listed versions 4:5.2.1+dfsg-1ubuntu14:5.2.1+dfsg-2ubuntu14:5.2.1+dfsg-2ubuntu24:5.2.1+dfsg-3 |
None known |
phpmyadminUbuntu:25.10 |
All versions, plus listed versions 4:5.2.2-really5.2.2+20250121+dfsg-14:5.2.2-really+dfsg-14:5.2.2-really+dfsg-2 |
None known |
phpmyadminUbuntu:26.10 |
All versions, plus listed versions 4:5.2.3+dfsg-14:5.2.4~dev~git20260809.e0909b211b+dfsg-1 |
None known |
phpmyadminUbuntu:26.04:LTS |
All versions, plus listed versions 4:5.2.2-really+dfsg-24:5.2.3+dfsg-1 |
None known |
phpMyAdminSUSE:Package Hub 15 SP4 From an advisory covering 4 CVEs |
before 5.2.1-bp154.2.3.1 | 5.2.1-bp154.2.3.1 |
phpMyAdminopenSUSE:Leap 15.4 From an advisory covering 4 CVEs |
before 5.2.1-bp154.2.3.1 | 5.2.1-bp154.2.3.1 |
phpMyAdminopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 5.1.2-1.1 | 5.1.2-1.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | dipakpanchal05/CVE-2022-23808 | 2022-02-01 |
| Nuclei | phpMyAdmin < 5.1.2 - Cross-Site Scripting |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| affected, aliases, references | OSV | |
| exploits | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, Nuclei, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-23808 is a medium vulnerability (CVSS 6.1) in Phpmyadmin, published January 22, 2022. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 7.94%, the 94th percentile. Fixed in phpmyadmin/phpmyadmin 5.1.2.
References
phpmyadmin.net/security/PMASA-2022-2
infosecwriteups.com/exploit-cve-2022-23808-85041c6e5b97
security.gentoo.org/glsa/202311-17
nvd.nist.gov/vuln/detail/CVE-2022-23808
github.com/phpmyadmin/phpmyadmin/commit/44eb12f15a562718bbe54c9a16af91ceea335d59
github.com/phpmyadmin/phpmyadmin/commit/5118acce1dfcdb09cbc0f73927bf51c46feeaf38
Show 19 moreShow less
github.com/advisories/GHSA-vcwc-6mr9-8m7c
security.alpinelinux.org/vuln/CVE-2022-23808
github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23808.json
security-tracker.debian.org/tracker/CVE-2022-23808
github.com/phpmyadmin/phpmyadmin
advisories.mageia.org/MGASA-2022-0036.html
bugs.mageia.org/show_bug.cgi?id=29931
phpmyadmin.net/news/2022/1/22/phpmyadmin-498-512-and-520-rc1-are-released
ubuntu.com/security/CVE-2022-23808
cve.org/CVERecord?id=CVE-2022-23808
lists.opensuse.org/archives/list/[email protected]/thread/VQ5VVS2CGDQ32RHYLQQZFFFADPEZO6KM
bugzilla.suse.com/1195017
bugzilla.suse.com/1195018
bugzilla.suse.com/1197036
bugzilla.suse.com/1208186
suse.com/security/cve/CVE-2022-0813
suse.com/security/cve/CVE-2022-23807
suse.com/security/cve/CVE-2022-23808
suse.com/security/cve/CVE-2023-25727
Left out here: the rest of 1 source description. The JSON record has them.