CSRF in Codeigniter
CVE-2022-24712
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.
Vulnerability class: CSRF (Cross-Site Request Forgery)
EPSS: 0.006 (43.6th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L.
Affected products
- Codeigniter
- Codeigniter4 — versions < 4.1.9
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory, Mitigation)
- security-advisories@github.com (Third Party Advisory, x_refsource_MISC, Release Notes)
Frequently asked questions
- What is CVE-2022-24712?
- CVE-2022-24712 is a medium-severity vulnerability in Codeigniter, classified under Cross-Site Request Forgery (CSRF). CVSS score: 6.3/10. Published 2022-02-28.
- How severe is CVE-2022-24712?
- Medium severity. CVSS v3 base score is 6.3 out of 10.