{"id":"CVE-2022-21647","aliases":["BIT-codeigniter-2022-21647","GHSA-w6jr-wj64-mc9x"],"url":"https://o3.security/vulnerability/CVE-2022-21647","summary":"Deserialization of Untrusted Data in Codeigniter4","details":"### Impact\nDeserialization of Untrusted Data was found in the `old()` function in CodeIgniter4.\nRemote attackers may inject auto-loadable arbitrary objects with this vulnerability, \nand possibly execute existing PHP code on the server.\nWe are aware of a working exploit, which can lead to SQL injection.\n\n### Patches\nUpgrade to v4.1.6 or later.\n\n### Workarounds\nDo not use:\n- `old()` and form_helper\n- `RedirectResponse::withInput()` and `redirect()->withInput()`\n\n### References\n- [PHP Object Injection | OWASP](https://owasp.org/www-community/vulnerabilities/PHP_Object_Injection)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [codeigniter4/CodeIgniter4](https://github.com/codeigniter4/CodeIgniter4/issues)\n* Email us at [SECURITY.md](https://github.com/codeigniter4/CodeIgniter4/blob/develop/SECURITY.md)\n","published":"2022-01-04T20:05:11Z","modified":"2026-08-12T03:51:25.730997021Z","cvss":{"score":7.7,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"codeigniter4/framework","fixedVersion":"4.1.6"}],"fix":{"url":"https://github.com/codeigniter4/CodeIgniter4/commit/ce95ed5765256e2f09f3513e7d42790e0d6948f5","label":"codeigniter4/CodeIgniter4@ce95ed5"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21647.json"},{"type":"ADVISORY","url":"https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-w6jr-wj64-mc9x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21647"},{"type":"FIX","url":"https://github.com/codeigniter4/CodeIgniter4/commit/ce95ed5765256e2f09f3513e7d42790e0d6948f5"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/codeigniter4/framework/CVE-2022-21647.yaml"},{"type":"PACKAGE","url":"https://github.com/codeigniter4/CodeIgniter4"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:25.730997021Z"}}