Deserialization of Untrusted Data in CodeIgniter4 - CVE-2022-21647

 

Deserialization of Untrusted Data in CodeIgniter4 - CVE-2022-21647

Published: January 4, 2022 / Updated: May 23, 2026


Vulnerability identifier: #VU132164
CSH Severity: Medium
CVSS v4: 8.4 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-21647
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute existing PHP code on the server.

The vulnerability exists due to deserialization of untrusted data in the old() function when processing serialized input. A remote attacker can inject auto-loadable arbitrary objects to execute existing PHP code on the server.

We are aware of a working exploit that can lead to SQL injection.


Affected software

CodeIgniter4

How to mitigate CVE-2022-21647

Install security update from vendor's website.

CodeIgniter4 - update to 4.1.6

External References

Related Security Bulletins