{"id":"CVE-2022-24712","published":"2022-02-28T16:00:12Z","modified":"2025-04-23T19:00:10Z","title":"Cross-Site Request Forgery (CSRF) Protection Bypass Vulnerability in CodeIgniter4","vendor":"codeigniter4","product":"CodeIgniter4","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00565,"percentile":0.47864,"provenance":"source"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-4v37-24gm-h554","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/codeigniter4/CodeIgniter4/blob/7dc2ece32401ebde67122f7d2460efcaee7c352e/user_guide_src/source/changelogs/v4.1.9.rst","tags":["x_refsource_MISC"]}],"priority":{"score":14.0,"factors":[{"name":"EPSS percentile","points":9.57},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"codeigniter4","affectedVersions":[{"vendor":"codeigniter4","product":"CodeIgniter4","versions":["< 4.1.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:09:51.233894Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"codeigniter4/framework","vulnerableRanges":["<4.1.9"],"patched":["4.1.9"],"from":["GHSA-4v37-24gm-h554"],"provenance":"source"}],"summary":{"text":"A flaw in the CSRF protection mechanism of CodeIgniter4, the 4.x branch of the PHP web framework, in versions prior to 4.1.9 allows the bypass of cross-site request forgery protection. An attacker with network access and low privileges, who can get a user to interact with a crafted request, can cause forged state-changing requests to be processed, affecting integrity and availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:11Z"},"euvd":{"id":"EUVD-2022-1316","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-21647","published":"2022-01-04","fixed":"4.1.6","kev":false},{"cve":"CVE-2022-21715","published":"2022-01-24","fixed":"4.1.8","kev":false,"link":{"from":"CVE-2022-21715","to":"CVE-2022-24712","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:codeigniter4/framework","fromFixed":"4.1.8","toFixed":"4.1.9","daysApart":35}]}},{"cve":"CVE-2022-24711","published":"2022-02-28","fixed":"4.1.9","kev":false},{"cve":"CVE-2022-24712","published":"2022-02-28","fixed":"4.1.9","kev":false},{"cve":"CVE-2022-39284","published":"2022-10-06","fixed":"4.2.7","kev":false,"link":{"from":"CVE-2022-24712","to":"CVE-2022-39284","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:codeigniter4/framework","fromFixed":"4.1.9","toFixed":"4.2.7","daysApart":220}]}},{"cve":"CVE-2022-23556","published":"2022-12-22","fixed":"4.2.11","kev":false},{"cve":"CVE-2022-46170","published":"2022-12-22","fixed":"4.2.11","kev":false}],"package":"Packagist:codeigniter4/framework"}}