CVE-2022-46170
PHP vulnerability analysis and mitigation

Overview

CodeIgniter is a PHP full-stack web framework that was found to contain a session handling vulnerability identified as CVE-2022-46170. The vulnerability was discovered and disclosed on December 22, 2022. This security issue affects applications using multiple session cookies in conjunction with DatabaseHandler, MemcachedHandler, or RedisHandler session handlers in versions prior to 4.2.11 (NVD, GitHub Advisory).

Technical details

The vulnerability occurs when an application implements multiple session cookies (for example, separate cookies for user pages and admin pages) while using either DatabaseHandler, MemcachedHandler, or RedisHandler as the session handler. The issue stems from improper session management that could allow unauthorized access between different session contexts. The vulnerability has been assigned a CVSS v3.1 score of 9.8 (Critical), with a base vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L (GitHub Advisory).

Impact

If exploited, this vulnerability could allow an attacker who has obtained one session cookie (such as one for user pages) to gain unauthorized access to pages that should require a different session cookie (such as those for admin pages). This represents a significant security breach that could lead to unauthorized access to privileged sections of the application (GitHub Advisory).

Mitigation and workarounds

The primary mitigation is to upgrade to CodeIgniter version 4.2.11 or later, which contains the patch for this vulnerability. For users unable to upgrade immediately, the recommended workaround is to use only one session cookie instead of multiple session cookies. The fix involves changes to how session handlers manage session keys and includes modifications to the DatabaseHandler, MemcachedHandler, and RedisHandler components (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65854CRITICAL9.8
  • PHPPHP
  • mineadmin/mineadmin
NoNoDec 12, 2025
CVE-2024-58303HIGH8.6
  • PHPPHP
  • fof/pretty-mail
NoNoDec 11, 2025
CVE-2025-67719HIGH8.5
  • PHPPHP
  • ibexa/user
NoYesDec 11, 2025
CVE-2025-67648HIGH7.1
  • PHPPHP
  • shopware/shopware
NoYesDec 11, 2025
CVE-2025-67737LOW3.1
  • PHPPHP
  • azuracast/azuracast
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management