phppgadmin contains a SQL injection vulnerability
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases through 7.13.0 (inclusive)Ecosystem versions | Not recorded |
Version evidence: OSV · GHSA-g6xh-wrpf-v6j6
View original version evidence (0 explicit versions)
Original source description
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
- Security advisory nvd.nist.gov/vuln/detail/CVE-2025-60798
- Source reference github.com/phppgadmin/phppgadmin
- Source reference github.com/phppgadmin/phppgadmin/blob/master/display.php
- Security advisory github.com/pr0wl1ng/security-advisories/blob/main/CVE-2025-60797.md
- Security advisory github.com/pr0wl1ng/security-advisories/blob/main/CVE-2025-60798.md