Description
phpMyAdmin through 5.2.3 contains a cross-site request forgery vulnerability that allows remote attackers to execute arbitrary SQL by bypassing CSRF token checks on non-AJAX POST requests. Attackers can lure authenticated victims into submitting cross-site POSTs carrying sql_query to /sql or /database/sql, running SQL with the victim's database privileges under http or config authentication.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| phpMyAdmin | phpMyAdmin | ≤ 5.2.3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | phpmyadmin | No fix yet | — |
| Debian 13 | phpmyadmin | No fix yet | — |
| Debian 12 | phpmyadmin | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | phpmyadmin | No fix yet | — |
| Ubuntu 26.04 LTS | phpmyadmin | No fix yet | — |
| Ubuntu 24.04 LTS | phpmyadmin | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | phpmyadmin | No fix yet | — |
| Ubuntu Pro 16.04 LTS | phpmyadmin | No fix yet | — |
| Ubuntu Pro 14.04 LTS | phpmyadmin | No fix yet | — |
Advisories 1
- WID-SEC-2026-4278 phpMyAdmin: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 1, 2026
References
- https://github.com/phpmyadmin/phpmyadmin/commit/d1e2b54b530685c24dd91181b9f64a5a64621789 patch
- https://github.com/phpmyadmin/phpmyadmin/commit/910322373f14ed4601c85234858f630f127569ef patch
- https://github.com/phpmyadmin/phpmyadmin/pull/20569 patch issue-tracking
- https://github.com/phpmyadmin/phpmyadmin/blob/RELEASE_5_2_3/libraries/classes/Common.php#L87-L151 technical-description
- https://abraxaslabs.tech/research/phpmyadmin-csrf-sql third-party-advisory
- https://github.com/phpmyadmin/phpmyadmin product
- VulnCheck Advisory: phpMyAdmin through 5.2.3 CSRF Token Bypass via Non-AJAX POST to /sql third-party-advisory