CVE-2025-24530 phpMyAdmin XSS when checking tables
Cross-site scripting in phpMyAdmin allows attackers to execute scripts via crafted table or database names, potentially compromising user sessions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-24530?
CVE-2025-24530 is a medium-severity cross-site scripting vulnerability in phpMyAdmin, published on 23 Jan 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
An issue was discovered in phpMyAdmin 5.x before 5.2.2. An XSS vulnerability has been discovered for the check tables feature. A crafted table or database name could be used for XSS.
Weakness: CWE-79
Which versions are affected by CVE-2025-24530?
3 open source packages ship an affected version, including phpmyadmin/phpmyadmin and phpmyadmin.
| Package | Affected | Fixed in |
|---|---|---|
phpmyadmin/phpmyadmin Packagist | From 5.0.0 | 5.2.2 |
phpmyadmin/phpmyadmin Packagist | From 5.0.0 | 5.2.2 |
phpmyadmin Bitnami | From 5.0.0 | 5.2.2 |
How do I fix CVE-2025-24530?
Upgrade phpmyadmin/phpmyadmin to 5.2.2 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-24530 being exploited?
There is no known exploitation of CVE-2025-24530 in the wild and no public exploit code.
Sources
Also known as BIT-phpmyadmin-2025-24530, DEBIAN-CVE-2025-24530, GHSA-222v-cx2c-q2f5, UBUNTU-CVE-2025-24530.