CVE-2022-24712

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.

Severity
MEDIUM
CVSS v3
6.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L · source cna
Exploit chance (EPSS)
0.565%
chance of exploitation in the next 30 days
higher than 47.6% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impactpartial
Scored2025-04-23

Timeline

  1. 2022-02-28Published by the CNA16:00 UTC
  2. 2022-03-01GitHub advisory published (GHSA-4v37-24gm-h554)1 day after publication
  3. 2025-04-23CISA SSVC decision recorded1150 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-4v37-24gm-h554, affected packages:

PackageVulnerable versionsFixed in
Packagist codeigniter4/frameworkbefore 4.1.94.1.9

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
codeigniter codeigniterfrom 4.0.0 before 4.1.9fixed in 4.1.94.1.9

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources