CVE-2022-24712

    Dashboard / Vulnerabilities / CVE-2022-24712

    CVE-2022-24712

    Published: 28 Feb 2022Last Modified: 21 Oct 2026

    Summary: Cross-Site Request Forgery (CSRF) Protection Bypass Vulnerability in CodeIgniter4

    Details: 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.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Introduced- 47dbb16bb5e5784f45bf09a7380016f2d36f7c39

    Affected versions

    v4.1.8
    v4.1.7
    v4.1.6
    v4.1.5
    v4.1.4
    v4.1.3
    v4.1.2
    v4.1.1
    v4.1.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    CVE-2022-24712 | CVE-DB