- Home
- Vulnerabilities
- CVE-2022-39284
CVE-2022-39284
CodeIgniter is a PHP full-stack web framework. In versions prior to 4.2.7 setting `$secure` or `$httponly`…
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.
Affected products and versions
Codeigniter (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| Codeigniter | from 4.0.0 (included) to 4.2.7 (excluded) |
— | NVD |
Fix
Not provided by the vendor.
Workaround
No workaround provided.
Check whether you are affected
Exploit reported by sources
These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.
Timeline
- — CVE published (cve)
References
- https://github.com/codeigniter4/CodeIgniter4/pull/6544Patch, Third Party Advisory
- https://codeigniter4.github.io/userguide/helpers/cookie_helper.html#set_cookieTechnical Description, Third Party Advisory
- https://codeigniter4.github.io/userguide/outgoing/response.html#CodeIgniter%5CHTTP%5CResponse::setCookieTechnical Description, Third Party Advisory
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookiesTechnical Description, Third Party Advisory
- https://github.com/codeigniter4/CodeIgniter4/issues/6540Exploit, Issue Tracking, Third Party Advisory
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-745p-r637-7vvpMitigation, Third Party Advisory
Data provenance
- Status
- NVD
- Publication date
- NVD
- Description
- NVD
- CVSS score
- NVD
- Weakness (CWE)
- NVD
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N(CVSS 3.1, NVD)- Weakness
- CWE-732 · Autre (CWE-732)