{"id":"CVE-2022-51023","revision":"ca1c8bae053f42a18ffabdbfc3b95949","records":[{"revision":"ca1c8bae053f42a18ffabdbfc3b95949","observedAt":"2026-10-29T03:48:01.066+00:00","statement":{"source":"cve-program","id":"CVE-2022-51023","aliases":[],"title":"PHPOK < 5.4.081 SQL Injection via api.php sort Parameter","description":"PHPOK 4.5.000 before 5.4.081 contains an SQL injection vulnerability that allows unauthenticated attackers to manipulate ORDER BY clauses via the sort parameter. Attackers can send GET requests to /api.php?c=project&f=index with extractvalue payloads in sort to extract database information through error messages. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-14.","state":0,"publishedAt":"2026-10-22T10:57:33.897+00:00","modifiedAt":"2026-10-29T02:04:37.497+00:00","affected":[{"ecosystem":"Vendor product","name":"PHPOK","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"defaultStatus\": \"unaffected\",\n                    \"vendor\": \"PHPOK\",\n                    \"product\": \"PHPOK\",\n                    \"versions\": [\n                        {\n                            \"version\": \"4.5.000\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"custom\",\n                            \"lessThan\": \"5.4.081\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","score":8.8,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2,"severity":"HIGH"}],"references":["https://github.com/qinggan/phpok/commit/d70c396f","https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/phpok-sqli.yaml","https://www.vulncheck.com/advisories/phpok-5.4.081-sql-injection-via-api-php-sort-parameter"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2022-51023","license":"CVE Program Terms of Use","key":"cve-program:CVE-2022-51023","identifiers":["CVE-2022-51023"]},"retained":false,"historicalAffected":[]}],"coverage":[]}