CVE-2022-21647
PHP vulnerability analysis and mitigation

Overview

CVE-2022-21647 is a vulnerability discovered in CodeIgniter, an open source PHP full-stack web framework. The vulnerability was identified in the old() function in CodeIgniter4, involving Deserialization of Untrusted Data. This security flaw was disclosed on January 4, 2022, affecting all versions of CodeIgniter4 prior to version 4.1.6 (NVD, GitHub Advisory).

Technical details

The vulnerability is classified as CWE-502 (Deserialization of Untrusted Data) and received a CVSS v3.1 base score of 9.8 (Critical) from NIST NVD, while GitHub assessed it with a CVSS score of 7.7 (High). The issue specifically exists in the old() function, where untrusted data could be deserialized, potentially allowing attackers to inject auto-loadable arbitrary objects (NVD).

Impact

The vulnerability enables remote attackers to inject auto-loadable arbitrary objects, which could lead to execution of existing PHP code on the server. A working exploit was confirmed that could result in SQL injection attacks (GitHub Advisory).

Mitigation and workarounds

The primary mitigation is to upgrade to CodeIgniter version 4.1.6 or later. For users unable to upgrade, the recommended workaround is to avoid using the old() function and form_helper, as well as RedirectResponse::withInput() and redirect()->withInput() (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66468HIGH7.6
  • PHPPHP
  • aimeos/ai-cms-grapesjs
NoYesDec 02, 2025
CVE-2025-65657MEDIUM6.5
  • PHPPHP
  • feehi/cms
NoNoDec 02, 2025
CVE-2025-65186MEDIUM6.1
  • PHPPHP
  • getgrav/grav
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management