{"id":"CVE-2022-39284","published":"2022-10-06T00:00:00Z","modified":"2025-04-22T17:19:34Z","title":"Secure or HttpOnly flag set in Config\\Cookie is not reflected in Cookies issued in Codeigniter4","vendor":"codeigniter4","product":"CodeIgniter4","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01122,"percentile":0.66998,"provenance":"source"},"cwes":[{"id":"CWE-665","name":"Improper Initialization"}],"references":[{"url":"https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-745p-r637-7vvp","tags":[]},{"url":"https://github.com/codeigniter4/CodeIgniter4/issues/6540","tags":[]},{"url":"https://github.com/codeigniter4/CodeIgniter4/pull/6544","tags":[]},{"url":"https://codeigniter4.github.io/userguide/helpers/cookie_helper.html#set_cookie","tags":[]},{"url":"https://codeigniter4.github.io/userguide/outgoing/response.html#CodeIgniter%5CHTTP%5CResponse::setCookie","tags":[]},{"url":"https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies","tags":[]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":13.4},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"codeigniter4","affectedVersions":[{"vendor":"codeigniter4","product":"CodeIgniter4","versions":["< 4.2.7"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-22T15:43:55.091660Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"codeigniter4/framework","vulnerableRanges":["<4.2.7"],"patched":["4.2.7"],"from":["GHSA-745p-r637-7vvp"],"provenance":"source"}],"summary":{"text":"The Config\\Cookie settings for the Secure and HttpOnly flags are not applied to cookies issued by CodeIgniter4's set_cookie() and Response::setCookie() functions in versions prior to 4.2.7. An attacker who can reach the application over the network, with low privileges and only if a user is induced to interact with a crafted page or request, can read the affected cookie values from client-side scripts, though session cookies are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:54Z"},"euvd":{"id":"EUVD-2022-7041","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-21715","published":"2022-01-24","fixed":"4.1.8","kev":false},{"cve":"CVE-2022-24711","published":"2022-02-28","fixed":"4.1.9","kev":false},{"cve":"CVE-2022-24712","published":"2022-02-28","fixed":"4.1.9","kev":false,"link":{"from":"CVE-2022-24712","to":"CVE-2022-39284","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:codeigniter4/framework","fromFixed":"4.1.9","toFixed":"4.2.7","daysApart":220}]}},{"cve":"CVE-2022-39284","published":"2022-10-06","fixed":"4.2.7","kev":false},{"cve":"CVE-2022-23556","published":"2022-12-22","fixed":"4.2.11","kev":false,"link":{"from":"CVE-2022-39284","to":"CVE-2022-23556","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:codeigniter4/framework","fromFixed":"4.2.7","toFixed":"4.2.11","daysApart":77}]}},{"cve":"CVE-2022-46170","published":"2022-12-22","fixed":"4.2.11","kev":false,"link":{"from":"CVE-2022-39284","to":"CVE-2022-46170","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:codeigniter4/framework","fromFixed":"4.2.7","toFixed":"4.2.11","daysApart":77}]}},{"cve":"CVE-2023-32692","published":"2023-05-30","fixed":"4.3.5","kev":false}],"package":"Packagist:codeigniter4/framework"}}