CVE-2022-46170 json
CodeIgniter is vulnerable to improper authentication via Session Handlers
published 3y ago modified 4mo ago also BIT-codeigniter-2022-46170 , EUVD-2022-7528 , GHSA-6cq5-8cj7-g558
- cvss
- 8.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 60%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist codeigniter4/framework 4.2.11
- bitnami codeigniter 4.2.11
- codeigniter codeigniter 4.2.11
Is CVE-2022-46170 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.91% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
| GitHub | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | codeigniter4/framework | <4.2.11 |
4.2.11 |
| bitnami | codeigniter | >=4.0.0, <4.2.11 |
4.2.11 |
Affected products
- codeigniter4 CodeIgniter4
Classification
- Weakness
-
- CWE-287 Improper Authentication
References
-
github.com
/codeigniter4/CodeIgniter4/commit/f9fb6574fbeb5a4aa63f7ea87296523e10db9328
web, patch, third-party-advisory
-
github.com
/codeigniter4/CodeIgniter4/security/advisories/GHSA-6cq5-8cj7-g558
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-46170
advisory
-
codeigniter4.github.io
/userguide/libraries/sessions.html#session-drivers
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/codeigniter4/framework/CVE-2022-46170.yaml
web
-
github.com
/codeigniter4/CodeIgniter4
package
Sources
- CVE List CVE-2022-46170
- GitHub Advisory GHSA-6cq5-8cj7-g558
- NVD CVE-2022-46170
- OSV BIT-codeigniter-2022-46170
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.