Cross-site Scripting (XSS)Weakness · CWE-79

CVE-2025-24530

MEDIUM · 6.4 CVSS v3.1 Published 2025-01-23
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
70/100
Remediation priority · Elevated
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

This is a reflected XSS vulnerability in phpMyAdmin's check tables feature. An attacker who can create or rename a table or database with a malicious name containing JavaScript code could trigger XSS when other users execute the check tables operation on that database. The vulnerability affects phpMyAdmin versions 5.x before 5.2.2.

MitigationUpgrade phpMyAdmin to version 5.2.2 or later. As a temporary workaround, ensure only trusted users have database/table creation privileges and avoid running check tables on untrusted databases.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify phpMyAdmin installation and version
    Access the phpMyAdmin login page or welcome page and locate the version number typically displayed in the footer or welcome message. Alternatively, check the file 'libraries/classes/Version.php' or 'vendor/phpmyadmin/error-reporting-server/src/Version.php' if accessible on the server.
    Affected if The installed version is 5.x and is lower than 5.2.2 (e.g., 5.2.1, 5.2.0, 5.1.x, 5.0.x)
  2. Verify check tables feature is accessible
    Confirm that the 'Check table' operation is available in phpMyAdmin under the 'More' dropdown menu for tables or via the SQL command 'CHECK TABLE tablename'. This feature is present in standard phpMyAdmin installations.
    Affected if The check tables feature is available and can be executed by users in the environment.
  3. Identify users with table creation or renaming privileges
    Review phpMyAdmin user privileges via 'User accounts' or 'Privileges' tab. Check which users have 'CREATE', 'ALTER', or 'RENAME' privileges on any database.
    Affected if There are users with privileges to create or rename tables/databases, as this is required for an attacker to plant a malicious name.
  4. Inspect existing database and table names for XSS payloads
    List all databases and tables via 'Databases' tab or using SQL query 'SHOW DATABASES;' and 'SHOW TABLES;'. Manually inspect names for patterns like '<script>', 'javascript:', 'onerror=', 'onload=', or other HTML/script content.
    Affected if Any database or table name contains executable JavaScript code or HTML tags that could trigger XSS when the check tables operation is performed.

You are affected if phpMyAdmin version is 5.x before 5.2.2 AND users with table creation/rename privileges exist AND malicious table/database names with XSS payloads are present in the environment.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Upgrade phpMyAdmin to version 5.2.2 or later. As a temporary workaround, ensure only trusted users have database/table creation privileges and avoid running check tables on untrusted databases.

Recommended fix Moderate confidence

phpMyAdmin 5.2.2

  1. 1. Back up your current phpMyAdmin installation and database configuration
  2. 2. Download phpMyAdmin 5.2.2 or later from the official source (www.phpmyadmin.net)
  3. 3. Extract the new version to your web server's phpMyAdmin directory
  4. 4. Replace all existing phpMyAdmin files with the new version
  5. 5. Preserve your config.inc.php configuration file from the old installation
  6. 6. Clear browser cache and verify phpMyAdmin loads correctly
  7. 7. Test the 'Check tables' feature to confirm the vulnerability is resolved
Caveat Minor version upgrade within 5.x; should retain configuration compatibility

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation2.0 h
  • Implementation3.0 h
  • Testing2.0 h
  • Review / QA1.0 h
8.0 hours of engineering $1,420
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,272.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-24530 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-24530 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data