CVE-2022-35943
CVE-2022-35943 is a medium-severity vulnerability in Codeigniter with a CVSS 3.x base score of 5.9. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-352.
Key facts
- Severity: Medium (CVSS 3.x base score 5.9)
- EPSS exploit prediction: 0% (38th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-352
- Affected product: Codeigniter
- Published:
- Last modified:
Description
Shield is an authentication and authorization framework for CodeIgniter 4. This vulnerability may allow [SameSite Attackers](https://canitakeyoursubdomain.name/) to bypass the [CodeIgniter4 CSRF protection](https://codeigniter4.github.io/userguide/libraries/security.html) mechanism with CodeIgniter Shield. For this attack to succeed, the attacker must have direct (or indirect, e.g., XSS) control over a subdomain site (e.g., `https://a.example.com/`) of the target site (e.g., `http://example.com/`). Upgrade to **CodeIgniter v4.2.3 or later** and **Shield v1.0.0-beta.2 or later**. As a workaround: set `Config\Security::$csrfProtection` to `'session,'`remove old session data right after login (immediately after ID and password match) and regenerate CSRF token right after login (immediately after ID and password match)
Frequently asked questions
- What is CVE-2022-35943?
- Shield is an authentication and authorization framework for CodeIgniter 4. This vulnerability may allow [SameSite Attackers](https://canitakeyoursubdomain.name/) to bypass the [CodeIgniter4 CSRF protection](https://codeigniter4.github.io/userguide/libraries/security.html) mechanism with CodeIgniter Shield. For this attack to succeed, the attacker must have direct (or indirect, e.g., XSS) control over a subdomain site (e.g., `https://a.example.com/`) of the target site (e.g., `http://example.com/`). Upgrade to **CodeIgniter v4.2.3 or later** and **Shield v1.0.0-beta.2 or later**. As a workaround: set `Config\Security::$csrfProtection` to `'session,'`remove old session data right after login (immediately after ID and password match) and regenerate CSRF token right after login (immediately after ID and password match)
- How severe is CVE-2022-35943?
- CVE-2022-35943 has a CVSS 3.x base score of 5.9, rated medium severity. It is exploitable over network with high attack complexity, requires no privileges and user interaction. Impact on confidentiality is none, integrity high, and availability low.
- Is CVE-2022-35943 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (38th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-35943?
- CVE-2022-35943 primarily affects Codeigniter. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2022-35943?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2022-35943 published?
- CVE-2022-35943 was published on 2022-08-12 and last updated on 2026-06-17.
References
- https://codeigniter4.github.io/userguide/libraries/security.htm
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
- https://github.com/codeigniter4/shield/security/advisories/GHSA-5hm8-vh6r-2cjq
- https://jub0bs.com/posts/2021-01-29-great-samesite-confusion
Affected products (2)
- cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:*
- cpe:2.3:a:codeigniter:shield:1.0.0:beta:*:*:*:*:*:*
More vulnerabilities in Codeigniter
- CVE-2025-54418 — Critical (CVSS 9.8): CodeIgniter is a PHP full-stack web framework. A command injection vulnerability present in versions prior to 4.6.2…
- CVE-2023-32692 — Critical (CVSS 9.8): CodeIgniter is a PHP full-stack web framework. This vulnerability allows attackers to execute arbitrary code when you…
- CVE-2022-40835 — Critical (CVSS 9.8): B.C. Institute of Technology CodeIgniter <=3.1.13 is vulnerable to SQL Injection via…
- CVE-2022-40834 — Critical (CVSS 9.8): B.C. Institute of Technology CodeIgniter <=3.1.13 is vulnerable to SQL Injection via…
- CVE-2022-40833 — Critical (CVSS 9.8): B.C. Institute of Technology CodeIgniter <=3.1.13 is vulnerable to SQL Injection via…
- CVE-2022-40832 — Critical (CVSS 9.8): B.C. Institute of Technology CodeIgniter <=3.1.13 is vulnerable to SQL Injection via…
All CVEs affecting Codeigniter →
Other CWE-352 (Cross-Site Request Forgery (CSRF)) vulnerabilities
- CVE-2025-32642 — Critical (CVSS 10.0): Cross-Site Request Forgery (CSRF) vulnerability in appsbd Vite Coupon vite-coupon allows Remote Code Inclusion.This…
- CVE-2025-23922 — Critical (CVSS 10.0): Cross-Site Request Forgery (CSRF) vulnerability in Harsh iSpring Embedder embed-ispring allows Upload a Web Shell to a…
- CVE-2017-5145 — Critical (CVSS 10.0): An issue was discovered in Carlo Gavazzi VMU-C EM prior to firmware Version A11_U05, and VMU-C PV prior to firmware…
- CVE-2019-25729 — Critical (CVSS 9.8): PDF Signer 3.0 contains a server-side template injection vulnerability that allows unauthenticated attackers to execute…
- CVE-2025-48340 — Critical (CVSS 9.8): Cross-Site Request Forgery (CSRF) vulnerability in Danny Vink User Profile Meta Manager user-profile-meta allows…
- CVE-2025-2907 — Critical (CVSS 9.8): The Order Delivery Date WordPress plugin before 12.3.1 does not have authorization and CSRF checks when importing…
Browse all CWE-352 (Cross-Site Request Forgery (CSRF)) vulnerabilities →