Read the docs
TI-2022-18660 Aliases CVE-2022-39284GHSA-745p-r637-7vvp

Secure or HttpOnly flag set in Config\Cookie is not reflected in Cookies issued in Codeigniter4

Priority MEDIUM 53CWE-665Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.

Summary

CodeIgniter is a PHP full-stack web framework. In versions prior to 4.2.7 setting `$secure` or `$httponly` value to `true` in `Config\Cookie` is not reflected in `set_cookie()` or `Response::setCookie()`. As a result cookie values are erroneously exposed to scripts. It should be noted that this vulnerability does not affect session cookies. Users are advised to upgrade to v4.2.7 or later. Users unable to upgrade are advised to manually construct their cookies either by setting the options in code or by constructing Cookie objects. Examples of each workaround are available in the linked GHSA.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01122 66th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed CodeIgniter4 (codeigniter4): 4.2.7codeigniter4/framework (Packagist): 4.2.7

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
codeigniter4CodeIgniter4before 4.2.74.2.7Patch availableCNA
—codeigniter4/framework (Packagist)before 4.2.74.2.7Patch availableGHSA-745p-r637-7vvp
  • CodeIgniter4 Vendorcodeigniter4 Affected before 4.2.7 Fixed in 4.2.7 Patch available CNA
  • codeigniter4/framework (Packagist) Vendor— Affected before 4.2.7 Fixed in 4.2.7 Patch available GHSA-745p-r637-7vvp

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:*4.0.0 to before 4.2.7Vulnerablecodeigniter4
  • cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:* Versions 4.0.0 to before 4.2.7 Vulnerable ·codeigniter4

Remediation

  • Fix · CNA CodeIgniter4 (codeigniter4) Fixed in 4.2.7
  • Fix · GHSA-745p-r637-7vvp codeigniter4/framework (Packagist) Fixed in 4.2.7 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-39284
  2. 2026-10-03 Alias added: GHSA-745p-r637-7vvp

References

  • TI-2014-07135 CodeIgniter before 3.0 and Kohana 3.2.3 and earlier and 3.3.x through 3.3.2 make it… CVSS 3.0CRITICAL 9.8
  • TI-2022-16370 SameSite may allow cross-site request forgery (CSRF) protection to be bypassed CVSS 3.1HIGH 8.8
  • TI-2022-06025 Deserialization of Untrusted Data in Codeigniter4 CVSS 3.1CRITICAL 9.8
  • TI-2024-27591 A Cross-Site Request Forgery (CSRF) in Codeigniter 3.1.13 allows attackers to arbitrarily… CVSS 3.1HIGH 7.5
  • TI-2014-07136 CodeIgniter before 2.2.0 makes it easier for attackers to decode session cookies by… CVSS 3.0CRITICAL 9.8
  • TI-2024-19671 CodeIgniter4 Language class DoS Vulnerability CVSS 3.1HIGH 7.5
See all 39 →

Sources