{"id":"CVE-2022-51023","summary":"PHPOK \u003c 5.4.081 SQL Injection via api.php sort Parameter","details":"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.","modified":"2026-10-23T02:45:05.912494947Z","published":"2026-10-22T10:57:33.897Z","database_specific":{"cwe_ids":["CWE-89"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/51xxx/CVE-2022-51023.json","unresolved_ranges":[{"extracted_events":[{"range":[{"introduced":"4.5.000"},{"fixed":"5.4.081"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]},{"extracted_events":[{"strategy":"CPEApplicability","range":[{"introduced":"4.5.000"},{"fixed":"5.4.081"}],"source":"CPE_FIELD"}]},{"extracted_events":[{"range":[{"introduced":"4.5.000"},{"fixed":"5.4.081"}],"source":"DESCRIPTION"}]}],"cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/51xxx/CVE-2022-51023.json"},{"type":"ARTICLE","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/phpok-sqli.yaml"},{"type":"FIX","url":"https://github.com/qinggan/phpok/commit/d70c396f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-51023"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/phpok-5.4.081-sql-injection-via-api-php-sort-parameter"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/qinggan/phpok","events":[{"introduced":"0"},{"fixed":"d70c396f"}],"database_specific":{"extracted_events":[{"range":[{"fixed":"d70c396f"}],"source":"REFERENCES_COMMIT"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-51023.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}