Advisory

GHSA-w6jr-wj64-mc9x

Also known as: BIT-codeigniter-2022-21647, CVE-2022-21647

Summary

Deserialization of Untrusted Data in Codeigniter4

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:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-01-06 22:52 UTC
Modified
2024-02-16 08:17 UTC

Affected packages and fixes

codeigniter4/framework

Packagist · All systems

Affected

  • introduced 0, fixed 4.1.6 (ecosystem)

Fixed versions

4.1.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences