{"id":"UBUNTU-CVE-2025-60798","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.","modified":"2026-05-20T16:23:38.588936338Z","published":"2025-11-20T15:17:00Z","upstream":["CVE-2025-60798"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-60798"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-60798"},{"type":"REPORT","url":"https://github.com/pr0wl1ng/security-advisories/blob/main/CVE-2025-60797.md"},{"type":"REPORT","url":"https://github.com/phppgadmin/phppgadmin/blob/master/display.php#L396"},{"type":"REPORT","url":"https://github.com/pr0wl1ng/security-advisories/blob/main/CVE-2025-60798.md"}],"affected":[{"package":{"name":"phppgadmin","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/phppgadmin?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.1+ds-1","5.1+ds-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"phppgadmin","binary_version":"5.1+ds-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-60798.json"}},{"package":{"name":"phppgadmin","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/phppgadmin?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.1+ds-2","5.1+ds-3"],"ecosystem_specific":{"binaries":[{"binary_name":"phppgadmin","binary_version":"5.1+ds-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-60798.json"}},{"package":{"name":"phppgadmin","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/phppgadmin?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.1+ds-4","7.12.0+ds-2","7.12.0+ds-3","7.12.1+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"phppgadmin","binary_version":"7.12.1+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-60798.json"}},{"package":{"name":"phppgadmin","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/phppgadmin?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.13.0+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_version":"7.13.0+dfsg-2","binary_name":"phppgadmin"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-60798.json"}},{"package":{"name":"phppgadmin","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/phppgadmin?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.13.0+dfsg-2","7.13.0+dfsg-3","7.14.7+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"7.14.7+dfsg-1","binary_name":"phppgadmin"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-60798.json"}},{"package":{"name":"phppgadmin","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/phppgadmin?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.14.7+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"7.14.7+dfsg-1","binary_name":"phppgadmin"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-60798.json"}},{"package":{"name":"phppgadmin","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/phppgadmin?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.14.7+dfsg-1","7.14.7+dfsg-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"phppgadmin","binary_version":"7.14.7+dfsg-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-60798.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}