CVE-2022-46170: Potential Session Handlers Vulnerability

Published Dec 22, 2022
·
Updated

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.

Other sources

CVE-2022-46170: Potential Session Handlers Vulnerability

Affected Software

3 affected componentsFixes available
composer/codeigniter4/framework<4.2.11
CodeIgniter Codeigniter>=4.0.0<4.2.11
composer/codeigniter4/framework<4.2.11
4.2.11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/codeigniter4/framework to a version that resolves this vulnerability.

    Fixed in 4.2.11
  2. Upgrade

    Upgrade CodeIgniter to a version that resolves this vulnerability.

    Fixed in 4.2.11
  3. Configuration

    Use only one session cookie as a workaround.

    CodeIgniter session handling session cookies = one

Event History

Dec 22, 2022
Advisory Published
02:49 AM
Data Sourced
via Packagist·02:49 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·06:58 PM
Data Sourced
via MITRE·06:58 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is CVE-2022-46170?

CVE-2022-46170 is a potential session handlers vulnerability in CodeIgniter, a PHP full-stack web framework, that can be exploited when an application uses multiple session cookies and a session handler set to 'DatabaseHandler', 'MemcachedHandler', or 'RedisHandler'.

2

What is the severity of CVE-2022-46170?

The severity of CVE-2022-46170 is critical with a base score of 9.8.

3

How does CVE-2022-46170 affect CodeIgniter?

CVE-2022-46170 affects CodeIgniter versions up to (excluding) 4.2.11 and Codeigniter Codeigniter versions between 4.0.0 and 4.2.11.

4

How can an attacker exploit CVE-2022-46170?

An attacker can exploit CVE-2022-46170 by obtaining one of the session cookies and using it to gain unauthorized access.

5

Is there a fix for CVE-2022-46170?

Yes, the fix for CVE-2022-46170 is available in the latest version of CodeIgniter. It is recommended to upgrade to the latest version to mitigate the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203