{"id":"CVE-2022-46170","aliases":["BIT-codeigniter-2022-46170","GHSA-6cq5-8cj7-g558"],"url":"https://o3.security/vulnerability/CVE-2022-46170","summary":"CodeIgniter is vulnerable to improper authentication via Session Handlers","details":"### Impact\nWhen 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).\n\n### Patches\nUpgrade to version 4.2.11 or later.\n\n### Workarounds\n- Use only one session cookie.\n\n### References\n- https://codeigniter4.github.io/userguide/libraries/sessions.html#session-drivers\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [codeigniter4/CodeIgniter4](https://github.com/codeigniter4/CodeIgniter4/issues)\n* Email us at [SECURITY.md](https://github.com/codeigniter4/CodeIgniter4/blob/develop/SECURITY.md)\n","published":"2022-12-22T18:58:17.658Z","modified":"2026-10-28T02:30:35.177237629Z","cvss":{"score":8.6,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"},"epss":{"score":0.00841,"percentile":0.54815,"asOf":"2026-08-15"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"codeigniter4/framework","fixedVersion":"4.2.11"}],"fix":{"url":"https://github.com/codeigniter4/CodeIgniter4/commit/f9fb6574fbeb5a4aa63f7ea87296523e10db9328","label":"codeigniter4/CodeIgniter4@f9fb657"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46170.json"},{"type":"ADVISORY","url":"https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-6cq5-8cj7-g558"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46170"},{"type":"FIX","url":"https://github.com/codeigniter4/CodeIgniter4/commit/f9fb6574fbeb5a4aa63f7ea87296523e10db9328"},{"type":"WEB","url":"https://codeigniter4.github.io/userguide/libraries/sessions.html#session-drivers"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/codeigniter4/framework/CVE-2022-46170.yaml"},{"type":"PACKAGE","url":"https://github.com/codeigniter4/CodeIgniter4"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:35.177237629Z"}}