CVE-2025-60798: phppgadmin contains a SQL injection vulnerability
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.
Published Nov 20, 2025 · Updated Nov 21, 2025
Affected packages
phppgadmin/phppgadmin
- Ecosystem
- Composer (PHP)
- Affected
- <= 7.13.0
- Fixed in
- No patched version yet
- Check
composer show phppgadmin/phppgadmin
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-60798
- 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
- https://github.com/advisories/GHSA-g6xh-wrpf-v6j6
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2021-47853
phpPgAdmin contains a remote command execution vulnerability
high8.8No fixJan 21, 2026CVE-2025-60796
phppgadmin vulnerable to Cross-site Scripting
low2.1No fixNov 20, 2025CVE-2025-60797
phppgadmin contains a SQL injection vulnerability
medium6.5No fixNov 20, 2025CVE-2025-60799
phppgadmin contains an incorrect access control vulnerability
medium6.1No fixNov 20, 2025
