CVE-2022-39284
CVE-2022-39284 — Secure or HttpOnly flag set in Config\Cookie is not reflected in Cookies issued in Codeigniter4
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
1%
chance of exploitation in 30 days
CVSS base
2.6
LOW
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 2.6 | CVSS 3.1 | LOW | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-665
References
6 on the record
- github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-745p-r637-7vvp
reference
- github.com/codeigniter4/CodeIgniter4/issues/6540
reference
- github.com/codeigniter4/CodeIgniter4/pull/6544
reference
- codeigniter4.github.io/userguide/helpers/cookie_helper.html#set_cookie
reference
- codeigniter4.github.io/userguide/outgoing/response.html#CodeIgniter%5CHTTP%5CResponse::setCookie
reference
- developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies
reference
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-142155 CodeIgniter4 before 4.7.5 Upload Validation Bypass via Trailing Dots and PHP ExtensionsCVSS 9.8
- CVE-2026-142153 CodeIgniter4 before 4.7.5 Code Injection via View Data Key CollisionCVSS 7.5
- CVE-2022-0847 Linux Kernel Privilege Escalation VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2021-38647 Open Management Infrastructure (OMI) Remote Code Execution VulnerabilityCVSS 7.5 · CISA KEV
- CVE-2013-1675 Mozilla Firefox Information Disclosure VulnerabilityCVSS 6.5 · CISA KEV
- CVE-2020-27950 Apple Multiple Products Memory Initialization VulnerabilityCVSS 5.5 · CISA KEV
Elsewhere on this site
- Codeigniter4every CVE for this vendor
- CWE-665other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.