HighGHSA-w6jr-wj64-mc9xBIT-codeigniter-2022-21647CVE-2022-21647

Deserialization of Untrusted Data in Codeigniter4

Published 6 Jan 2022 · Updated 16 Feb 2024

Affected package

Affected
<4.1.6
Fixed in
4.1.6
Update to the fixed version for your release line, for example:composer require codeigniter4/framework:^4.1.6

Details

Impact

Deserialization of Untrusted Data was found in the old() function in CodeIgniter4. Remote attackers may inject auto-loadable arbitrary objects with this vulnerability, and possibly execute existing PHP code on the server. We are aware of a working exploit, which can lead to SQL injection.

Patches

Upgrade to v4.1.6 or later.

Workarounds

Do not use:

  • old() and form_helper
  • RedirectResponse::withInput() and redirect()->withInput()

References

For more information

If you have any questions or comments about this advisory:

Is GHSA-w6jr-wj64-mc9x in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected codeigniter4/framework, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.