{"id":"UBUNTU-CVE-2025-60799","details":"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.","modified":"2026-05-20T16:23:38.193613535Z","published":"2025-11-20T15:17:00Z","upstream":["CVE-2025-60799"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-60799"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-60799"},{"type":"REPORT","url":"https://github.com/pr0wl1ng/security-advisories/blob/main/CVE-2025-60799.md"},{"type":"REPORT","url":"https://github.com/phppgadmin/phppgadmin/blob/master/sql.php#L68-L76"}],"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_version":"5.1+ds-1ubuntu1","binary_name":"phppgadmin"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-60799.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-60799.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_version":"7.12.1+dfsg-1","binary_name":"phppgadmin"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-60799.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-60799.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-60799.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_name":"phppgadmin","binary_version":"7.14.7+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-60799.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-60799.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}