SQL Injection in Phpok
CVE-2022-51023
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- github.com/qinggan/phpok/commit/d70c396f (patch)
- github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/oth… (technical-description)
- www.vulncheck.com/advisories/phpok-5.4.081-sql-injection-via-api-php-sort-param… (third-party-advisory)
Frequently asked questions
- What is CVE-2022-51023?
- CVE-2022-51023 is a high-severity vulnerability in Phpok, classified under SQL Injection. CVSS score: 8.2/10. Published 2026-10-22.
- How severe is CVE-2022-51023?
- High severity. CVSS v3 base score is 8.2 out of 10.