CVE-2022-51023: Unauthenticated SQL Injection in PHPOK sort Parameter
- Vendor
- Phpok
CVE-2022-51023 is an unauthenticated SQL injection vulnerability affecting PHPOK versions from 4.5.000 up to, but excluding, 5.4.081. Improper handling of the sort parameter in the project index API allows remote attackers to manipulate SQL ORDER BY clauses. Crafted GET requests containing extractvalue expressions can trigger database errors that disclose database information. The Shadowserver Foundation first observed evidence of exploitation on October 14, 2023.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation exposes database information through error messages, potentially compromising sensitive data accessible to the application's database account. Recorded CVSS assessments indicate high confidentiality impact, low integrity impact, and no availability impact. Database modification and code execution are not established by the available technical details.
Mitigation
If you can’t patch tonight, do this now.
Until upgrading, restrict untrusted access to the affected project index API endpoint. No vendor-provided workaround is specified.
Remediation
Patch, then assume compromise.
Upgrade PHPOK to version 5.4.081 or a later supported release outside the affected version range.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-51023 exploited in the wild?
- Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2022-51023?
- As of Nov 19, 2026, Mallory has found no public exploit for CVE-2022-51023.
- Is there a patch for CVE-2022-51023?
- Upgrade PHPOK to version 5.4.081 or a later supported release outside the affected version range.
- What products are affected by CVE-2022-51023?
- Phpok.
- How severe is CVE-2022-51023?
- CVE-2022-51023 has a CVSS v4 score of 8.8 (High) and an EPSS score of 0.26% (18th percentile) as of Nov 19, 2026.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.