CVE-2018-12581 json
phpMyAdmin XSS Vulnerability
published 2018-06-21 8 y ago modified 2026-06-17 4 mo ago also GHSA-vxj6-pm6r-23hq , EUVD-2022-5456
- cvss
- 6.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
An issue was discovered in js/designer/move.js in phpMyAdmin before 4.8.2. A Cross-Site Scripting vulnerability has been found where an attacker can use a crafted database name to trigger an XSS attack when that database is referenced from the Designer feature.
Patch / fix
- packagist phpmyadmin/phpmyadmin 4.8.2
- phpmyadmin phpmyadmin 4.8.2
- phpmyadmin Debian 14, Debian 13, Debian 12 4:4.9.1+dfsg1-2
debian advisories DEBIAN-CVE-2018-12581
- phpmyadmin Ubuntu Pro 14.04 LTS 4:4.0.10-1ubuntu0.1+esm1
- phpmyadmin Ubuntu Pro 16.04 LTS 4:4.5.4.1-2ubuntu2.1+esm3
- phpmyadmin Ubuntu Pro 18.04 LTS 4:4.6.6-5ubuntu0.5+esm1
ubuntu advisories UBUNTU-CVE-2018-12581
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- phpMyAdmin openSUSE Tumbleweed 5.1.1-1.2
opensuse advisories openSUSE-SU-2024:11171-1
- phpmyadmin Alpine 3.24, Alpine 3.23, Alpine 3.22 +14 more 4.8.2-r0
alpine advisories ALPINE-CVE-2018-12581
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-12581 updated cvss 7.7
phpMyAdmin: XSS when the database is referenced from the Designer feature
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.78% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | phpmyadmin/phpmyadmin | <4.8.2 |
4.8.2 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
phpmyadmin.net
/security/PMASA-2018-3/
patch, vendor-advisory
-
github.com
/phpmyadmin/phpmyadmin/commit/6943fff87324bd54c3a37a5160a5fb77498c355e
web
-
securityfocus.com
/bid/104530
vdb-entry, third-party-advisory
-
securitytracker.com
/id/1041187
vdb-entry, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-12581
advisory
-
web.archive.org
/web/20210124181711/http://www.securityfocus.com/bid/104530
web
-
web.archive.org
/web/20210413204012/http://www.securitytracker.com/id/1041187
web
-
phpmyadmin.net
/security/PMASA-2018-3
web
Sources
- CVE List CVE-2018-12581
- GitHub Advisory GHSA-vxj6-pm6r-23hq
- NVD CVE-2018-12581
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.