What’s Vulnerable › Vulnerabilities
CVE-2022-51023: PHPOK < 5.4.081 SQL Injection via api.php sort Parameter
- Severity: high (CVSS 8.2 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-22 · updated 2026-10-29
- Weakness: CWE-89
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.
Affected products
- PHPOK: from 4.5.000 before 5.4.081 — fixed in 5.4.081
How to fix
Upgrade to a fixed version: PHPOK 5.4.081. Check the vendor advisory for mitigations.
References
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/phpok-sqli.yaml
- https://github.com/qinggan/phpok/commit/d70c396f
- https://www.vulncheck.com/advisories/phpok-5.4.081-sql-injection-via-api-php-sort-parameter
Get alerted when CVE-2022-51023 or the next vulnerability affects your stack