# CVE-2022-46170: CodeIgniter is vulnerable to improper authentication via Session Handlers

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/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.93%, higher than 61% of CVEs (2026-12-01)
- Published: 2022-12-22T18:58:17.658Z
- Modified: 2026-06-17T05:11:21.310Z
- Also known as: GHSA-6cq5-8cj7-g558, BIT-CODEIGNITER-2022-46170
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-6cq5-8cj7-g558> (third-party-advisory, web)
- <https://github.com/codeigniter4/CodeIgniter4/commit/f9fb6574fbeb5a4aa63f7ea87296523e10db9328> (patch, 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)

## Sources

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

---

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