Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:composer/codeigniter4/framework@4.1.0
purl pkg:composer/codeigniter4/framework@4.1.0
Next non-vulnerable version 4.7.3
Latest non-vulnerable version 4.7.3
Risk 4.5
Vulnerabilities affecting this package (13)
Vulnerability Summary Fixed by
VCID-1znc-1bss-pkaj
Aliases:
CVE-2023-46240
GHSA-hwxf-qxj7-7rfj
CodeIgniter is a PHP full-stack web framework. Prior to CodeIgniter4 version 4.4.3, if an error or exception occurs, a detailed error report is displayed even if in the production environment. As a result, confidential information may be leaked. Version 4.4.3 contains a patch. As a workaround, replace `ini_set('display_errors', '0')` with `ini_set('display_errors', 'Off')` in `app/Config/Boot/production.php`.
4.4.3
Affected by 4 other vulnerabilities.
VCID-376r-v1rs-ekbd
Aliases:
CVE-2022-24711
GHSA-xjp4-6w75-qrj7
CodeIgniter4 is the 4.x branch of CodeIgniter, a PHP full-stack web framework. Prior to version 4.1.9, an improper input validation vulnerability allows attackers to execute CLI routes via HTTP request. Version 4.1.9 contains a patch. There are currently no known workarounds for this vulnerability.
4.1.9
Affected by 9 other vulnerabilities.
VCID-dq2u-p7ju-6yfd
Aliases:
CVE-2023-32692
GHSA-m6m8-6gq8-c9fj
GMS-2023-1562
CodeIgniter is a PHP full-stack web framework. This vulnerability allows attackers to execute arbitrary code when you use Validation Placeholders. The vulnerability exists in the Validation library, and validation methods in the controller and in-model validation are also vulnerable because they use the Validation library internally. This issue is patched in version 4.3.5.
4.3.5
Affected by 5 other vulnerabilities.
VCID-dtde-gj8c-a7br
Aliases:
CVE-2024-29904
GHSA-39fp-mqmm-gxj6
CodeIgniter is a PHP full-stack web framework A vulnerability was found in the Language class that allowed DoS attacks. This vulnerability can be exploited by an attacker to consume a large amount of memory on the server. Upgrade to v4.4.7 or later.
4.4.7
Affected by 3 other vulnerabilities.
VCID-jdsk-9fw6-buhu
Aliases:
CVE-2025-45406
GHSA-49jm-g4m8-x53p
A stored cross-site scripting (XSS) vulnerability in CodeIgniter4 v4.6.0 allows attackers to execute arbitrary web scripts or HTML via a crafted payload injected into the debugbar_time parameter. NOTE: this is disputed by the Supplier because attackers cannot influence the value of debugbar_time, and because debugbar-related data is automatically escaped by the CodeIgniter Parser class. There are no reported fixed by versions.
VCID-jfqs-jftp-byf3
Aliases:
CVE-2022-23556
GHSA-ghw3-5qvm-3mqc
CodeIgniter is a PHP full-stack web framework. This vulnerability may allow attackers to spoof their IP address when the server is behind a reverse proxy. This issue has been patched, please upgrade to version 4.2.11 or later, and configure `Config\App::$proxyIPs`. As a workaround, do not use `$request->getIPAddress()`.
4.2.11
Affected by 6 other vulnerabilities.
VCID-kqy2-2nun-27cn
Aliases:
CVE-2025-54418
GHSA-9952-gv64-x94c
CodeIgniter is a PHP full-stack web framework. A command injection vulnerability present in versions prior to 4.6.2 affects applications that use the ImageMagick handler for image processing (`imagick` as the image library) and either allow file uploads with user-controlled filenames and process uploaded images using the `resize()` method or use the `text()` method with user-controlled text content or options. An attacker can upload a file with a malicious filename containing shell metacharacters that get executed when the image is processed or provide malicious text content or options that get executed when adding text to images Users should upgrade to v4.6.2 or later to receive a patch. As a workaround, switch to the GD image handler (`gd`, the default handler), which is not affected by either vulnerability. For file upload scenarios, instead of using user-provided filenames, generate random names to eliminate the attack vector with `getRandomName()` when using the `move()` method, or use the `store()` method, which automatically generates safe filenames. For text operations, if one must use ImageMagick with user-controlled text, sanitize the input to only allow safe characters and validate/restrict text options.
4.6.2
Affected by 1 other vulnerability.
VCID-ntph-mnds-9ffc
Aliases:
CVE-2022-39284
GHSA-745p-r637-7vvp
CodeIgniter is a PHP full-stack web framework. In versions prior to 4.2.7 setting `$secure` or `$httponly` value to `true` in `Config\Cookie` is not reflected in `set_cookie()` or `Response::setCookie()`. As a result cookie values are erroneously exposed to scripts. It should be noted that this vulnerability does not affect session cookies. Users are advised to upgrade to v4.2.7 or later. Users unable to upgrade are advised to manually construct their cookies either by setting the options in code or by constructing Cookie objects. Examples of each workaround are available in the linked GHSA.
4.2.7
Affected by 8 other vulnerabilities.
VCID-p6ns-5khc-77au
Aliases:
CVE-2025-24013
GHSA-x5mq-jjr3-vmx6
CodeIgniter is a PHP full-stack web framework. Prior to 4.5.8, CodeIgniter lacked proper header validation for its name and value. The potential attacker can construct deliberately malformed headers with Header class. This could disrupt application functionality, potentially causing errors or generating invalid HTTP requests. In some cases, these malformed requests might lead to a DoS scenario if a remote service’s web application firewall interprets them as malicious and blocks further communication with the application. This vulnerability is fixed in 4.5.8.
4.5.8
Affected by 2 other vulnerabilities.
VCID-q87f-r6t7-5qhk
Aliases:
CVE-2022-24712
GHSA-4v37-24gm-h554
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.
4.1.9
Affected by 9 other vulnerabilities.
VCID-snv3-sbwn-w3ah
Aliases:
CVE-2022-46170
GHSA-6cq5-8cj7-g558
CodeIgniter is a PHP full-stack web framework. When an application uses (1) multiple session cookies (e.g., one for user pages and one for admin pages) and (2) a session handler is set to `DatabaseHandler`, `MemcachedHandler`, or `RedisHandler`, then if an attacker gets one session cookie (e.g., one for user pages), they may be able to access pages that require another session cookie (e.g., for admin pages). This issue has been patched, please upgrade to version 4.2.11 or later. As a workaround, use only one session cookie.
4.2.11
Affected by 6 other vulnerabilities.
VCID-upv5-p7qb-3qhj
Aliases:
CVE-2022-21715
GHSA-7528-7jg5-6g62
CodeIgniter4 is the 4.x branch of CodeIgniter, a PHP full-stack web framework. A cross-site scripting (XSS) vulnerability was found in `API\ResponseTrait` in Codeigniter4 prior to version 4.1.8. Attackers can do XSS attacks if a potential victim is using `API\ResponseTrait`. Version 4.1.8 contains a patch for this vulnerability. There are two potential workarounds available. Users may avoid using `API\ResponseTrait` or `ResourceController` Users may also disable Auto Route and use defined routes only.
4.1.8
Affected by 11 other vulnerabilities.
VCID-zgwa-rrhw-73aq
Aliases:
CVE-2022-21647
GHSA-w6jr-wj64-mc9x
CodeIgniter is an open source PHP full-stack web framework. Deserialization of Untrusted Data was found in the `old()` function in CodeIgniter4. Remote attackers may inject auto-loadable arbitrary objects with this vulnerability, and possibly execute existing PHP code on the server. We are aware of a working exploit, which can lead to SQL injection. Users are advised to upgrade to v4.1.6 or later. Users unable to upgrade as advised to not use the `old()` function and form_helper nor `RedirectResponse::withInput()` and `redirect()->withInput()`.
4.1.6
Affected by 12 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-12T20:08:08.305388+00:00 GitLab Importer Affected by VCID-kqy2-2nun-27cn https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2025-54418.yml 38.6.0
2026-06-12T20:08:04.340339+00:00 GitLab Importer Affected by VCID-jdsk-9fw6-buhu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2025-45406.yml 38.6.0
2026-06-12T19:50:20.819251+00:00 GitLab Importer Affected by VCID-p6ns-5khc-77au https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2025-24013.yml 38.6.0
2026-06-12T19:24:24.081049+00:00 GitLab Importer Affected by VCID-dtde-gj8c-a7br https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2024-29904.yml 38.6.0
2026-06-12T19:10:04.498527+00:00 GitLab Importer Affected by VCID-1znc-1bss-pkaj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2023-46240.yml 38.6.0
2026-06-12T18:56:08.117089+00:00 GitLab Importer Affected by VCID-dq2u-p7ju-6yfd https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2023-32692.yml 38.6.0
2026-06-12T18:42:37.497264+00:00 GitLab Importer Affected by VCID-jfqs-jftp-byf3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2022-23556.yml 38.6.0
2026-06-12T18:42:37.264849+00:00 GitLab Importer Affected by VCID-snv3-sbwn-w3ah https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2022-46170.yml 38.6.0
2026-06-12T18:35:18.515074+00:00 GitLab Importer Affected by VCID-ntph-mnds-9ffc https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2022-39284.yml 38.6.0
2026-06-12T18:00:50.380835+00:00 GitLab Importer Affected by VCID-376r-v1rs-ekbd https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2022-24711.yml 38.6.0
2026-06-12T18:00:50.202852+00:00 GitLab Importer Affected by VCID-q87f-r6t7-5qhk https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2022-24712.yml 38.6.0
2026-06-12T17:56:28.279443+00:00 GitLab Importer Affected by VCID-upv5-p7qb-3qhj https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2022-21715.yml 38.6.0
2026-06-12T17:54:52.046822+00:00 GitLab Importer Affected by VCID-zgwa-rrhw-73aq https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/codeigniter4/framework/CVE-2022-21647.yml 38.6.0