{"id":"CVE-2022-46170","published":"2022-12-22T18:58:17Z","modified":"2025-04-15T14:33:06Z","title":"CodeIgniter is vulnerable to improper authentication via Session Handlers","vendor":"codeigniter4","product":"CodeIgniter4","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00912,"percentile":0.60909,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-6cq5-8cj7-g558","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/codeigniter4/CodeIgniter4/commit/f9fb6574fbeb5a4aa63f7ea87296523e10db9328","tags":["x_refsource_MISC"]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":12.18},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"codeigniter4","affectedVersions":[{"vendor":"codeigniter4","product":"CodeIgniter4","versions":["< 4.2.11"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-15T14:32:54.141561Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"codeigniter4/framework","vulnerableRanges":["<4.2.11"],"patched":["4.2.11"],"from":["GHSA-6cq5-8cj7-g558"],"provenance":"source"}],"summary":{"text":"The flaw is an improper authentication weakness in the session handling of CodeIgniter4, the PHP full-stack web framework, affecting applications that use more than one session cookie together with the DatabaseHandler, MemcachedHandler, or RedisHandler session handler. An attacker who holds one of the session cookies, such as the user-facing one, may be able to reach pages protected by another session cookie, such as the admin-facing one, over the network without authentication or user interaction, provided the application is configured with multiple session cookies and one of those handlers.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:29Z"},"euvd":{"id":"EUVD-2022-7528","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-24712","published":"2022-02-28","fixed":"4.1.9","kev":false},{"cve":"CVE-2022-39284","published":"2022-10-06","fixed":"4.2.7","kev":false,"link":{"from":"CVE-2022-39284","to":"CVE-2022-46170","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:codeigniter4/framework","fromFixed":"4.2.7","toFixed":"4.2.11","daysApart":77}]}},{"cve":"CVE-2022-23556","published":"2022-12-22","fixed":"4.2.11","kev":false},{"cve":"CVE-2022-46170","published":"2022-12-22","fixed":"4.2.11","kev":false},{"cve":"CVE-2023-32692","published":"2023-05-30","fixed":"4.3.5","kev":false,"link":{"from":"CVE-2022-46170","to":"CVE-2023-32692","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:codeigniter4/framework","fromFixed":"4.2.11","toFixed":"4.3.5","daysApart":159}]}},{"cve":"CVE-2023-46240","published":"2023-10-31","fixed":"4.4.3","kev":false},{"cve":"CVE-2024-29904","published":"2024-03-29","fixed":"4.4.7","kev":false}],"package":"Packagist:codeigniter4/framework"}}