CVE-2022-39284

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

Description

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.

Categories

2.6
CVSS
Severity: Low
CVSS 3.1 •
EPSS 0.13%
Third-Party Advisory github.io Third-Party Advisory github.io Third-Party Advisory mozilla.org Third-Party Advisory github.com Third-Party Advisory github.com Third-Party Advisory github.com
Affected: codeigniter4 CodeIgniter4
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-39284?
CVE-2022-39284 has been scored as a low severity vulnerability.
How to fix CVE-2022-39284?
To fix CVE-2022-39284, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-39284 being actively exploited in the wild?
It is possible that CVE-2022-39284 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-39284?
CVE-2022-39284 affects codeigniter4 CodeIgniter4.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.