# CVE-2022-24712: Cross-Site Request Forgery (CSRF) Protection Bypass Vulnerability in CodeIgniter4

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Published: 2022-02-28T16:00:12.000Z
- Modified: 2026-06-17T04:32:20.993Z
- Also known as: GHSA-4v37-24gm-h554, BIT-CODEIGNITER-2022-24712
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- codeigniter4 CodeIgniter4: < 4.1.9
- codeigniter4/framework (Packagist): before 4.1.9
- codeigniter codeigniter: from 4.0.0 before 4.1.9
- codeigniter (Bitnami): from 4.0.0 before 4.1.9

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-4v37-24gm-h554> (mitigation, third-party-advisory, web)
- <https://github.com/codeigniter4/CodeIgniter4/blob/7dc2ece32401ebde67122f7d2460efcaee7c352e/user_guide_src/source/changelogs/v4.1.9.rst> (release-notes, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24712> (advisory)

## Sources

- CVE List: [CVE-2022-24712](https://www.cve.org/CVERecord?id=CVE-2022-24712), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-4v37-24gm-h554](https://github.com/advisories/GHSA-4v37-24gm-h554), CC-BY-4.0, modified 2023-12-06
- NVD: [CVE-2022-24712](https://nvd.nist.gov/vuln/detail/CVE-2022-24712), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-CODEIGNITER-2022-24712](https://osv.dev/vulnerability/BIT-CODEIGNITER-2022-24712), Apache-2.0, modified 2024-03-06

---

Page: https://cve.day/CVE-2022-24712 · Whole record: https://cve.day/CVE-2022-24712.json · Rebuilt by cve.day 2026-11-25T22:58:09.866Z
