{"id":"CVE-2026-57518","summary":"Pagekit CMS 1.0.18 Privilege Escalation via UserApiController","details":"Pagekit CMS 1.0.18 contains a privilege escalation vulnerability that allows authenticated users with the 'user: manage users' permission to escalate privileges by assigning arbitrary custom roles to themselves due to missing authorization checks in UserApiController::saveAction(). Attackers can assign themselves a custom role with the 'system: manage packages' permission and then upload and install a malicious PHP package through the admin package installer to achieve remote code execution.","modified":"2026-08-12T03:51:33.392675911Z","published":"2026-06-26T15:58:20.847Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57518.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-862"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57518.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-57518"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/pagekit-cms-privilege-escalation-via-userapicontroller"},{"type":"PACKAGE","url":"https://github.com/pagekit/pagekit"},{"type":"EVIDENCE","url":"https://gist.github.com/sermikr0/6f0a67e9d101746fcdb04827de137847"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pagekit/pagekit","events":[{"introduced":"0"},{"last_affected":"95446c5f08fc43993fad5e2b581743ffcce50c35"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"0"},{"last_affected":"1.0.18"}]}}],"versions":["1.0.18","1.0.17","1.0.16","1.0.15","1.0.14","1.0.13","1.0.12","1.0.11","1.0.10","1.0.9","1.0.8","1.0.7","1.0.6","1.0.5","1.0.4","1.0.3","1.0.2","1.0.1","1.0.0","0.11.3","0.11.2","0.11.1","0.11.0","0.10.4","0.10.3","0.10.2","0.10.1","0.10.0","0.9.5","0.9.4","0.9.3","0.9.2","0.9.1","0.9.0","0.8.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57518.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}