{"schema":"threatline.record/2","record":{"id":"CVE-2022-51023","aliases":[],"summary":"PHPOK < 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.","categories":["Unclassified"],"product":"PHPOK","vendor":"PHPOK","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2022-51023","source_modified_at":"2026-10-22T10:57:33.897Z","fetched_at":"2026-10-23T18:42:43.628194Z","product":"PHPOK","vendor":"PHPOK","versions":[{"version":"4.5.000","status":"affected","versionType":"custom","lessThan":"5.4.081"}],"defaultStatus":"unaffected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2022-51023","source_modified_at":"2026-10-22T10:57:33.897Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"name":"PHPOK","ecosystem":null},"version":"5.4.081","basis":"first unaffected version stated in the CVE record"}],"cvss":8.8,"severity":"High","kev":{"listed":false},"epss":{"probability":0.00262,"percentile":0.17009,"score_date":"2026-10-23"},"published_at":"2026-10-22T10:57:33.897Z","modified_at":"2026-10-22T10:57:33.897Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-51023","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-22T10:57:33.897Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-51023","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/qinggan/phpok/commit/d70c396f","tags":["patch"]},{"source":"CVE List","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/phpok-sqli.yaml","tags":["technical-description"]},{"source":"CVE List","url":"https://www.vulncheck.com/advisories/phpok-5.4.081-sql-injection-via-api-php-sort-parameter","tags":["third-party-advisory"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-22T10:57:33.897Z","content_hash":"1a663e0dbf43a816496e76bd2a2b639f337758f95b0000b5e7aece72bd498881"}}
