Cross-Site Request Forgery (CSRF) Protection Bypass Vulnerability in CodeIgniter4
Description
CodeIgniter4 is the 4.x branch of CodeIgniter, a PHP full-stack web framework. A vulnerability in versions prior to 4.1.9 might allow remote attackers to bypass the CodeIgniter4 Cross-Site Request Forgery (CSRF) protection mechanism. Users should upgrade to version 4.1.9. There are workarounds for this vulnerability, but users will still need to code as these after upgrading to v4.1.9. Otherwise, the CSRF protection may be bypassed. If auto-routing is enabled, check the request method in the controller method before processing. If auto-routing is disabled, either avoid using $routes->add() and instead use HTTP verbs in routes; or check the request method in the controller method before processing.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
codeigniter4/frameworkPackagist | < 4.1.9 | 4.1.9 |
Affected products
3- osv-coords2 versions
>= 4.0.0, < 4.1.9+ 1 more
- (no CPE)range: >= 4.0.0, < 4.1.9
- (no CPE)range: < 4.1.9
- Range: < 4.1.9
Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-4v37-24gm-h554ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-24712ghsaADVISORY
- github.com/codeigniter4/CodeIgniter4/blob/7dc2ece32401ebde67122f7d2460efcaee7c352e/user_guide_src/source/changelogs/v4.1.9.rstghsax_refsource_MISCWEB
- github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-4v37-24gm-h554ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.