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
codeigniter4/frameworkComposer
- 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.6Details
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_helperRedirectResponse::withInput()andredirect()->withInput()
References
For more information
If you have any questions or comments about this advisory:
- Open an issue in codeigniter4/CodeIgniter4
- Email us at SECURITY.md
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
- Linkgithub.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-w6jr-wj64-mc9x
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-21647
- Linkgithub.com/codeigniter4/CodeIgniter4/commit/ce95ed5765256e2f09f3513e7d42790e0d6948f5
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/codeigniter4/framework/CVE-2022-21647.yaml
- Packagegithub.com/codeigniter4/CodeIgniter4
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.