# CVE-2022-51023: PHPOK < 5.4.081 SQL Injection via api.php sort Parameter

- Severity: High 8.8 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-22T10:57:33.897Z
- Modified: 2026-11-10T12:10:00.177Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- PHPOK PHPOK: from 4.5.000 before 5.4.081

## Every score

- VulnCheck: CVSS:4.0 8.8 High `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`
- VulnCheck: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`

## References

- <https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/other/phpok-sqli.yaml> (exploit, technical-description)
- <https://github.com/qinggan/phpok/commit/d70c396f> (patch)
- <https://www.vulncheck.com/advisories/phpok-5.4.081-sql-injection-via-api-php-sort-parameter> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-51023](https://www.cve.org/CVERecord?id=CVE-2022-51023), CVE Terms of Use, modified 2026-10-29
- NVD: [CVE-2022-51023](https://nvd.nist.gov/vuln/detail/CVE-2022-51023), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2022-51023 · Whole record: https://cve.day/CVE-2022-51023.json · Rebuilt by cve.day 2026-11-25T22:58:21.458Z
