GitHub Advisory Database
GHSA-g6xh-wrpf-v6j6
phppgadmin contains a SQL injection vulnerability
Details
phpPgAdmin 7.13.0 and earlier contains a SQL injection vulnerability in display.php at line 396. The application passes user-controlled input from $_REQUEST['query'] directly to the browseQuery function without proper sanitization. An authenticated attacker can exploit this vulnerability to execute arbitrary SQL commands through malicious query manipulation, potentially leading to complete database compromise.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | phppgadmin/phppgadmin | All versions up to and including 7.13.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-60798
- https://github.com/phppgadmin/phppgadmin
- https://github.com/phppgadmin/phppgadmin/blob/master/display.php#L396
- https://github.com/pr0wl1ng/security-advisories/blob/main/CVE-2025-60797.md
- https://github.com/pr0wl1ng/security-advisories/blob/main/CVE-2025-60798.md