CVE-2022-39284 in Codeigniter
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 no...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Codeigniter | Codeigniter | ≥ 4.0.0, < 4.2.7 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-39284 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-065312-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| Published | 2022-10-06 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-665: CWE-665
CWE-732: Incorrect Permission Assignment for Critical Resource
Software sets permissions on critical resources allowing unintended actors to read or modify them.
Related attack patterns (CAPEC)
CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-732
CAPEC-61 Session Fixation via CWE-732
CAPEC-127 Directory Indexing via CWE-732
CAPEC-206 Signing Malicious Code via CWE-732
CAPEC-642 Replace Binaries via CWE-732
Show all 13
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-732
CAPEC-17 Using Malicious Files via CWE-732
CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-665
CAPEC-62 Cross Site Request Forgery via CWE-732
CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels via CWE-732
CAPEC-234 Hijacking a privileged process via CWE-732
CAPEC-26 Leveraging Race Conditions via CWE-665
CAPEC-122 Privilege Abuse via CWE-732
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CodeIgniter versions prior to 4.2.7 have a vulnerability where setting $secure or $httponly to true in Config\Cookie does not reflect in set_cookie() or Response::setCookie(), leading to cookie values being exposed to scripts.
An attacker could exploit this vulnerability to access cookies that should be secure and HTTP-only, potentially leading to unauthorized access or session hijacking.
Questions
What is CVE-2022-39284?
CodeIgniter versions prior to 4.2.7 have a vulnerability where setting $secure or $httponly to true in Config\Cookie does not reflect in set_cookie() or Response::setCookie(), leading to cookie values being exposed to scripts.
What is the CVSS score for CVE-2022-39284?
CVE-2022-39284 has CVSS 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N. EPSS: 1.2%.
Is CVE-2022-39284 actively exploited?
No confirmed active exploitation of CVE-2022-39284 as of 2026-09-25.
How do I remediate CVE-2022-39284?
Priority: HIGH.
What systems are affected by CVE-2022-39284?
CVE-2022-39284 affects Codeigniter Codeigniter.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Codeigniter","product":"Codeigniter","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.