{"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-12-02T02:20:09.148016489Z","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:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/phppgadmin?arch=source&distro=esm-apps-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.1+ds-1","5.1+ds-1ubuntu1","5.1+ds-1ubuntu1+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"5.1+ds-1ubuntu1+esm1","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:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/phppgadmin?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.1+ds-2","5.1+ds-3","5.1+ds-3ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"phppgadmin","binary_version":"5.1+ds-3ubuntu0.1~esm1"}]},"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:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/phppgadmin?arch=source&distro=esm-apps%2Ffocal"},"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","7.12.1+dfsg-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"phppgadmin","binary_version":"7.12.1+dfsg-1ubuntu0.1~esm1"}]},"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:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/phppgadmin?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.13.0+dfsg-2","7.13.0+dfsg-2ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"7.13.0+dfsg-2ubuntu0.1~esm1","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_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: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-60799.json"}},{"package":{"name":"phppgadmin","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/phppgadmin?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.14.7+dfsg-1build1","7.14.8+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"phppgadmin","binary_version":"7.14.8+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.9.2","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","source":"SELF"}]}