{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-51023","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","state":"PUBLISHED","assignerShortName":"VulnCheck","dateReserved":"2026-10-14T20:25:29.946Z","datePublished":"2026-10-22T10:57:33.897Z","dateUpdated":"2026-10-29T02:04:37.497Z"},"containers":{"cna":{"providerMetadata":{"orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","shortName":"VulnCheck","dateUpdated":"2026-10-22T10:57:33.897Z"},"datePublic":"2022-06-05T00:00:00.000Z","title":"PHPOK < 5.4.081 SQL Injection via api.php sort Parameter","descriptions":[{"lang":"en","value":"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."}],"tags":["x_known-exploited-vulnerability","unsupported-when-assigned"],"problemTypes":[{"descriptions":[{"lang":"en","description":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","cweId":"CWE-89","type":"CWE"}]}],"affected":[{"defaultStatus":"unaffected","vendor":"PHPOK","product":"PHPOK","versions":[{"version":"4.5.000","status":"affected","versionType":"custom","lessThan":"5.4.081"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:phpok:phpok:*:*:*:*:*:*:*:*","versionStartIncluding":"4.5.000","versionEndExcluding":"5.4.081"}]}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":8.8,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"NONE","version":"3.1","baseSeverity":"HIGH","baseScore":8.2,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"}}],"references":[{"url":"https://github.com/qinggan/phpok/commit/d70c396f","name":"Fix Commit","tags":["patch"]},{"url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/phpok-sqli.yaml","name":"Nuclei Template","tags":["technical-description"]},{"name":"VulnCheck Advisory: PHPOK < 5.4.081 SQL Injection via api.php sort Parameter","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/phpok-5.4.081-sql-injection-via-api-php-sort-parameter"}],"credits":[{"lang":"en","value":"The Shadowserver Foundation","type":"reporter"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"vulncheck-kclub"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-29T02:04:26.699743Z","id":"CVE-2022-51023","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-10-29T02:04:37.497Z"}}]}}