CVE-2022-46170
CRITICAL 9.8CVSS 3.1CodeIgniter4 Potential Session Handlers Vulnerability
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.
- Published
- 22 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-287
- Also known as
- BIT-codeigniter-2022-46170GHSA-6cq5-8cj7-g558
- Sources
- NVDJSONOSV GHSA-6cq5-8cj7-g558JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | codeigniter | codeignitercpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.2.11 | 4.2.11 |
| OSV | Packagist | codeigniter4/framework | < 4.2.11 | 4.2.11 |
References
- https://github.com/codeigniter4/CodeIgniter4/commit/f9fb6574fbeb5a4aa63f7ea87296523e10db9328 · Patch, Third Party Advisory, WEB
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-6cq5-8cj7-g558 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-46170 · ADVISORY
- https://codeigniter4.github.io/userguide/libraries/sessions.html#session-drivers · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/codeigniter4/framework/CVE-2022-46170.yaml · WEB
- https://github.com/codeigniter4/CodeIgniter4 · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 22 Dec 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 22 Dec 2022)