SQL injection in PHPOK via the api.php sort parameter
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
PHPOK from 4.5.000 before 5.4.081 contains an SQL injection flaw in the sort parameter of api.php, tracked as CWE-89. An unauthenticated remote attacker can manipulate ORDER BY clauses by sending crafted GET requests and extract database information through error messages. The Shadowserver Foundation first observed exploitation evidence on 2023-10-14.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade PHPOK to version 5.4.081 or later, the fixed version listed for this flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA PHPOK (PHPOK) Fixed in 5.4.081
Timeline
- 2026-10-22 Threatist record created from CVE-2022-51023
- 2026-10-22 Alias added: GHSA-hv8g-4wwm-c979
- 2026-10-23 Priority changed: MEDIUM → LOW
- 2026-10-29 CISA SSVC decision points changed
- 2026-10-29 Priority changed: LOW → MEDIUM
References
Patch 1
Other 1
More PHPOK vulnerabilities
- TI-2022-19467 Phpok 6.1 has a deserialization vulnerability via framework/phpok_call.php. CVSS 3.1CRITICAL 9.8
- TI-2023-16596 An arbitrary file upload vulnerability in /admin.php?c=upload of phpok v6.4.100 allows… CVSS 3.1HIGH 8.8
- TI-2021-13263 File Upload vulnerability in PHPOK 5.7.140 allows remote attackers to run arbitrary code… CVSS 3.1HIGH 8.8
- TI-2024-30027 phpok v3.0 was discovered to contain an arbitrary file read vulnerability via the component /autoload/file.php. CVSS 3.1HIGH 7.5
- TI-2020-14064 SQL injection vulnerability in PHPOK v.5.4. CVSS 3.1HIGH 7.5
- TI-2023-02707 PHPOK unrestricted upload CVSS 3.1HIGH 8.8
Sources
- CVE-2022-51023 · CVE Program
- CVE-2022-51023 · NVD
- FIRST EPSS
- GHSA-hv8g-4wwm-c979 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences