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.
Published: 2026-10-22
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: Unauthorized Data Access
Action: Apply Patch
AI Analysis

Impact

The vulnerability exists in PHPOK 4.5.000 up to versions before 5.4.081 and allows an unauthenticated attacker to perform a SQL injection using the sort parameter of the /api.php endpoint. By inserting specially crafted expressions, the attacker can manipulate the ORDER BY clause and cause database errors that reveal sensitive information, including database contents and potentially credentials or configuration data.

Affected Systems

PHPOK, version 4.5.000 and any release prior to 5.4.081. The vulnerable component is the api.php endpoint that processes the sort parameter, exposing systems that run these versions to the risk if the endpoint is publicly accessible.

Risk and Exploitability

The CVSS score of 8.8 classifies this as high severity, indicating serious potential impact. The EPSS score is not available, but the vulnerability was first seen in October 2023, showing it is actively exploited by threat actors. The exploit requires no authentication and can be performed over standard HTTP by sending a GET request to /api.php?c=project&f=index with a malicious sort value. Attackers could extract database information via error messages, providing a foothold for further compromise. The vulnerability is not listed in CISA’s KEV catalog at this time.

Generated by OpenCVE AI on October 22, 2026 at 12:41 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PHPOK to version 5.4.081 or later, which contains the patch for the SQL injection issue.
  • Restrict or sanitize the sort parameter on the /api.php endpoint to accept only a predefined set of safe values or block the endpoint entirely if it is not required.
  • Continuously monitor web application logs for SQL injection attempts and block offending IP addresses to reduce exposure while a permanent fix is applied.

Generated by OpenCVE AI on October 22, 2026 at 12:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 22 Oct 2026 11:00:00 +0000

Type Values Removed Values Added
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.
Title PHPOK < 5.4.081 SQL Injection via api.php sort Parameter
First Time appeared Phpok
Phpok phpok
Weaknesses CWE-89
CPEs cpe:2.3:a:phpok:phpok:*:*:*:*:*:*:*:*
Vendors & Products Phpok
Phpok phpok
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N'}

cvssV4_0

{'score': 8.8, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-22T10:57:33.897Z

Reserved: 2026-10-14T20:25:29.946Z

Link: CVE-2022-51023

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-22T11:17:05.300

Modified: 2026-10-22T11:17:05.300

Link: CVE-2022-51023

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T13:15:06Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')