CVE-2022-39284
Last modified
CVE-2022-39284 is a medium-severity vulnerability rated 4.3/10 on the CVSS scale. 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()`. EPSS estimates a 0.83% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Codeigniter | Codeigniter | >= 4.0.0, < 4.2.7 |
References
- 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/pull/6544Patch, Third Party Advisory
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-745p-r637-7vvpMitigation, 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/pull/6544Patch, Third Party Advisory
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-745p-r637-7vvpMitigation, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-39284?
How severe is CVE-2022-39284?
How do I fix CVE-2022-39284?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-39279discourse-chat is a plugin for the Discourse message board w…5.4
- CVE-2022-3928 Hardcoded credential is found in affected products' message…5.5
- CVE-2022-39280dparse is a parser for Python dependency files. dparse in ve…7.5
- CVE-2022-39281fat_free_crm is a an open source, Ruby on Rails customer rel…6.5
- CVE-2022-39282FreeRDP is a free remote desktop protocol library and client…7.5
- CVE-2022-39283FreeRDP is a free remote desktop protocol library and client…7.5
- CVE-2022-39285ZoneMinder is a free, open source Closed-circuit television …5.4
- CVE-2022-39286Jupyter Core is a package for the core common functionality …8.8
- CVE-2022-39287tiny-csrf is a Node.js cross site request forgery (CSRF) pro…6.5
- CVE-2022-39288fastify is a fast and low overhead web framework, for Node.j…7.5
- CVE-2022-39289ZoneMinder is a free, open source Closed-circuit television …7.5
- CVE-2022-3929 Communication between the client and the server application…9.8
Are you affected by CVE-2022-39284?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
