Vulnerability Details : CVE-2022-39284
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.
Products affected by CVE-2022-39284
- cpe:2.3:a:codeigniter:codeigniter:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-39284
0.08%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 31 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-39284
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
2.8
|
1.4
|
NIST | |
2.6
|
LOW | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N |
1.2
|
1.4
|
GitHub, Inc. |
CWE ids for CVE-2022-39284
-
The product does not initialize or incorrectly initializes a resource, which might leave the resource in an unexpected state when it is accessed or used.Assigned by: security-advisories@github.com (Secondary)
-
The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-39284
-
https://codeigniter4.github.io/userguide/outgoing/response.html#CodeIgniter%5CHTTP%5CResponse::setCookie
HTTP Responses — CodeIgniter 4.2.7 documentationTechnical Description;Third Party Advisory
-
https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies
Using HTTP cookies - HTTP | MDNTechnical Description;Third Party Advisory
-
https://codeigniter4.github.io/userguide/helpers/cookie_helper.html#set_cookie
Cookie Helper — CodeIgniter 4.2.7 documentationTechnical Description;Third Party Advisory
-
https://github.com/codeigniter4/CodeIgniter4/pull/6544
fix: set_cookie() does not use Config\Cookie values by kenjis · Pull Request #6544 · codeigniter4/CodeIgniter4 · GitHubPatch;Third Party Advisory
-
https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-745p-r637-7vvp
Secure or HttpOnly flag set in Config\Cookie is not reflected in Cookies issued in Codeigniter4 · Advisory · codeigniter4/CodeIgniter4 · GitHubMitigation;Third Party Advisory
-
https://github.com/codeigniter4/CodeIgniter4/issues/6540
Bug: set_cookie not using default value of $secure from config · Issue #6540 · codeigniter4/CodeIgniter4 · GitHubExploit;Issue Tracking;Third Party Advisory
Jump to