Description
phpPgAdmin 7.13.0 and earlier contains an incorrect access control vulnerability in sql.php at lines 68-76. The application allows unauthorized manipulation of session variables by accepting user-controlled parameters ('subject', 'server', 'database', 'queryid') without proper validation or access control checks. Attackers can exploit this to store arbitrary SQL queries in $_SESSION['sqlquery'] by manipulating these parameters, potentially leading to session poisoning, stored cross-site scripting, or unauthorized access to sensitive session data.
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 | phppgadmin | No fix yet | — |
| Debian 13 | phppgadmin | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | phppgadmin | No fix yet | — |
| Ubuntu 26.04 LTS | phppgadmin | No fix yet | — |
| Ubuntu 25.10 | phppgadmin | No fix yet | — |
| Ubuntu 24.04 LTS | phppgadmin | No fix yet | — |
| Ubuntu 22.04 LTS | phppgadmin | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | phppgadmin | No fix yet | — |
| Ubuntu 18.04 LTS | phppgadmin | No fix yet | — |
| Ubuntu 16.04 LTS | phppgadmin | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | phppgadmin/phppgadmin | <= 7.13.0 | — | GHSA-r63p-v37q-g74c |