CVE-2022-21647
CVE-2022-21647 is a high-severity vulnerability in Codeigniter with a CVSS 3.x base score of 7.7. Its EPSS exploit-prediction score of 38% places it in the 98th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-502.
Key facts
- Severity: High (CVSS 3.x base score 7.7)
- CVSS v2: 7.5
- EPSS exploit prediction: 38% (98th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-502
- Affected product: Codeigniter
- Published:
- Last modified:
Description
CodeIgniter is an open source PHP full-stack web framework. Deserialization of Untrusted Data was found in the `old()` function in CodeIgniter4. Remote attackers may inject auto-loadable arbitrary objects with this vulnerability, and possibly execute existing PHP code on the server. We are aware of a working exploit, which can lead to SQL injection. Users are advised to upgrade to v4.1.6 or later. Users unable to upgrade as advised to not use the `old()` function and form_helper nor `RedirectResponse::withInput()` and `redirect()->withInput()`.
Frequently asked questions
- What is CVE-2022-21647?
- CodeIgniter is an open source PHP full-stack web framework. Deserialization of Untrusted Data was found in the `old()` function in CodeIgniter4. Remote attackers may inject auto-loadable arbitrary objects with this vulnerability, and possibly execute existing PHP code on the server. We are aware of a working exploit, which can lead to SQL injection. Users are advised to upgrade to v4.1.6 or later. Users unable to upgrade as advised to not use the `old()` function and form_helper nor `RedirectResponse::withInput()` and `redirect()->withInput()`.
- How severe is CVE-2022-21647?
- CVE-2022-21647 has a CVSS 3.x base score of 7.7, rated high severity. It is exploitable over network with high attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity high, and availability high.
- Is CVE-2022-21647 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 38% (98th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-21647?
- CVE-2022-21647 affects Codeigniter. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2022-21647?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2022-21647 published?
- CVE-2022-21647 was published on 2022-01-04 and last updated on 2026-06-17.
References
- https://github.com/codeigniter4/CodeIgniter4/commit/ce95ed5765256e2f09f3513e7d42790e0d6948f5
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-w6jr-wj64-mc9x
Affected products (1)
- cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:*
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-502 (Deserialization of Untrusted Data) vulnerabilities
- CVE-2026-41104 — Critical (CVSS 10.0): Deserialization of untrusted data in Microsoft Planetary Computer Pro allows an unauthorized attacker to disclose…
- CVE-2026-43633 — Critical (CVSS 10.0): HestiaCP versions 1.9.0 through 1.9.4 contain a deserialization vulnerability in the web terminal component caused by a…
- CVE-2026-33819 — Critical (CVSS 10.0): Deserialization of untrusted data in Microsoft Bing allows an unauthorized attacker to execute code over a network.
- CVE-2026-20131 — Critical (CVSS 10.0): A vulnerability in the web-based management interface of Cisco Secure Firewall Management Center (FMC) Software could…
- CVE-2026-25632 — Critical (CVSS 10.0): EPyT-Flow is a Python package designed for the easy generation of hydraulic and water quality scenario data of water…
- CVE-2025-14931 — Critical (CVSS 10.0): Hugging Face smolagents Remote Python Executor Deserialization of Untrusted Data Remote Code Execution Vulnerability.…
Browse all CWE-502 (Deserialization of Untrusted Data) vulnerabilities →