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.0: 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/E:U/U:Green
CVE-ID: CVE-2022-21647
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: CodeIgniter
Affected software:
CodeIgniter4

Detailed vulnerability description

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.


How to mitigate CVE-2022-21647

Install security update from vendor's website.

Sources