CVE-2022-35943
PHP vulnerability analysis and mitigation

Overview

Shield, an authentication and authorization framework for CodeIgniter 4, was found to contain a vulnerability (CVE-2022-35943) that could allow SameSite attackers to bypass the CSRF protection mechanism. The vulnerability was discovered and disclosed in August 2022, affecting Shield version 1.0.0-beta. The issue was patched in version 1.0.0-beta.2 (GitHub Advisory).

Technical details

The vulnerability exists regardless of the CSRF protection configuration (cookie or session) and regeneration settings. For a successful attack, the attacker must have direct or indirect control (e.g., through XSS) over a subdomain of the target site. For example, if an attacker controls https://a.example.com/, they could potentially attack http://example.com/. The vulnerability received a CVSS v3.1 score of 5.9 (Moderate) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:L (GitHub Advisory).

Impact

When successfully exploited, this vulnerability allows attackers to bypass the CSRF protection mechanisms in CodeIgniter Shield. This could potentially lead to unauthorized actions being performed on behalf of authenticated users, compromising the integrity of the application (GitHub Advisory).

Mitigation and workarounds

Users should upgrade to CodeIgniter v4.2.3 or later and Shield v1.0.0-beta.2 or later. If upgrading is not immediately possible, the following workarounds can be implemented: set Config\Security::$csrfProtection to 'session', remove old session data right after login, and regenerate CSRF token right after login (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-2026-23492HIGH8.8
  • PHPPHP
  • pimcore/pimcore
NoYesJan 14, 2026
CVE-2026-23498HIGH7.2
  • PHPPHP
  • shopware/core
NoYesJan 14, 2026
GHSA-595p-g7xc-c333MEDIUM6.9
  • PHPPHP
  • algolia/algoliasearch-magento-2
NoYesJan 14, 2026
CVE-2022-50807MEDIUM6.9
  • PHPPHP
  • concrete5/concrete5
NoNoJan 13, 2026
CVE-2026-0859MEDIUM5.2
  • PHPPHP
  • typo3/cms-core
NoYesJan 13, 2026

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