Skip to main content

CodeIgniter4 EUVDEUVD-2026-141467

| CVE-2026-142151 HIGH
Improper Cleanup on Thrown Exception (CWE-460)
2026-12-02 VulnCheck GHSA-c832-7fm9-qp8j
8.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Operate less-trusted destination endpoint
  2. Delivery
    App's first CURLRequest returns HTTP 400+
  3. Exploit
    HTTPException leaves options on reused client
  4. Execution
    App catches error and reuses same client
  5. Impact
    Capture leaked Authorization header or body

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception cleanup procedures
Exploitation Conditions

Disclosure requires all of the following application-side conditions, per the GHSA advisory: the app uses CodeIgniter4 CURLRequest (service('curlrequest') returns a shared instance); a request throws \CodeIgniter\HTTP\Exceptions\HTTPException - which, under the DEFAULT http_errors setting, is triggered by any HTTP response status 400 or higher; the application CATCHES that exception and REUSES the same client instance; and the subsequent request goes to a different, less-trusted destination. Critically, setting shareOptions to false does NOT prevent this because the leak occurs via the exception path. Limiting factors: exploitation is entirely dependent on this reuse-after-failure coding pattern and on an attacker being able to operate or receive the later request's destination - it is not exploitable against a default install without this specific client-reuse behavior, which is why CVSS carries AC:H and AT:P.

Impact

This is a credential/information-disclosure flaw (CWE-460, cleanup-on-thrown-exception) rated CVSS 4.0 8.2 (High) by the input, with vector AV:N/AC:H/AT:P/PR:N/UI:N and VC:H only (VI:N/VA:N) - so impact is confidentiality-only, and the elevated score is driven by network reachability and high confidentiality impact rather than by ease of exploitation. The AC:H and AT:P metrics correctly signal that exploitation is NOT turnkey: it depends on a specific application coding pattern (catching the HTTPException and reusing the same CURLRequest client for a later request to a less-trusted destination). No CISA KEV listing and no EPSS value were provided, and the references are vendor/coordinator advisories (GHSA, VulnCheck) rather than working exploit code, so there is no public exploit identified at time of analysis. The vuln.today priority is 'this_week' (not act_now/emergency), which is consistent with a real-but-conditional issue rather than mass-exploitable RCE. Net: a genuine credential-leakage risk for applications that reuse HTTP clients across trust boundaries, but materially gated by application behavior, so it is a 'patch-this-week' priority rather than a drop-everything emergency. Note the PR:N applies to the external party that receives the leaked request - no authentication is needed by that receiving destination to collect the disclosed credentials.

Exploit ScenarioDerived

A CodeIgniter4 application uses a reused CURLRequest client to POST to a trusted internal API with an Authorization/Bearer header; that request returns HTTP 400+, which (under the default http_errors setting) throws an HTTPException that leaves the auth header and body set on the client even though shareOptions is false. The application catches the exception and reuses the same client to call a different, less-trusted endpoint, which now receives the previously-set Authorization header, Basic Auth credentials, or request body. No public exploit code is identified; the attack requires the attacker to operate or receive traffic at that later destination.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Information disclosure in the CodeIgniter4 CURLRequest component before 4.7.5 can leak a previously used Authorization header, Basic Auth credentials, or request body to a different, less-trusted destination. The leak only occurs when an application catches the HTTPException thrown by CURLRequest::request() - under the framework's default http_errors setting any HTTP response of 400 or higher triggers it - and then reuses the same client instance for a later request, even with shareOptions set to false. Impact is confidentiality-only (VC:H, VI:N, VA:N) and reachable over the network without authentication (PR:N), but exploitation depends entirely on that catch-and-reuse coding pattern and on an attacker controlling or receiving the subsequent destination, which is why the assessed vector carries AC:H and AT:P; no public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade composer/codeigniter4/framework to 4.7.5 or later; this is the only complete fix and should be scheduled as a near-term (this week) item for applications that reuse CURLRequest clients after failures. Where upgrading cannot be done immediately, the advisory's workaround is to use separate clients for destinations with different trust levels and, if a client is reused after a failed request, replace it with a fresh nonshared instance before sending another request - for example, catch \CodeIgniter\HTTP\Exceptions\HTTPException and re-create the client via single_service('curlrequest', $defaults) rather than reusing the failed object. Note that service('curlrequest') returns a shared, cached instance, so unsetting or reassigning a local variable does not evict it from the service cache and does not by itself remove the leaked options; the replacement must be a newly instantiated nonshared client. Setting shareOptions to false alone does not mitigate the exception path in affected versions and should not be relied on. Upstream documentation for the library is at https://codeigniter.com/user_guide/libraries/curlrequest.html and the fix advisory is at https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-9g9v-xgwj-697h.

Affected VersionsENISA

CodeIgniter4 0 <4.7.5

Affected Packages

euvd codeigniter4 fix: 4.7.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a CWE-460 (Improper Cleanup on Thrown Exception) bug in CodeIgniter4's CURLRequest library, which wraps PHP's cURL extension and lets developers pass per-request options such as headers, Basic Auth credentials, and a request body. When CURLRequest::request() raises a \CodeIgniter\HTTP\Exceptions\HTTPException, the options already applied to the client are not reset, so the cURL handle retains the prior Authorization header, Basic Auth credentials, body, and other options. The shareOptions flag is intended to control whether options carry over between requests, but in affected versions setting it to false does not cover the exception path, so the residual state survives the failure. Under the framework's default http_errors setting, any response with status 400 or higher is sufficient to enter this exception path, making ordinary failed calls (a rejected token, a 500 from a peer) the trigger rather than an exotic condition. Because service('curlrequest') returns an instance held in the service cache, the same client can be handed back to unrelated code paths, increasing the chance that a later request is dispatched to a different destination carrying stale credentials. The trigger conditions and the requirement that the application reuse the failed client are confirmed by the upstream GHSA advisory; exploitation is not possible against a default installation that does not exhibit this reuse-after-failure pattern.

Know when Codeigniter4 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.2 HIGH
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.9 MEDIUM

Network-reachable leak but AC:H because it needs the catch-and-reuse-across-trust-boundary pattern; PR:N as the receiving party needs no auth; confidentiality-only (C:H, I/A:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Dec 02, 2026 - 16:02 EUVD
CVE Published
Dec 02, 2026 - 14:37 cve.org
HIGH 8.2

DescriptionCVE.org

CodeIgniter4 before 4.7.5 contains an information disclosure vulnerability in CURLRequest::request() that leaves request options on the client after an exception, even when shareOptions is false. Attackers receiving a later request from a reused client can obtain the previous Authorization header, Basic Auth credentials, or request body.

Technical POC Analysis

CWE-460, Improper Cleanup on Thrown Exception, in CodeIgniter\HTTP\CURLRequest::request() (package codeigniter4/framework, per the advisory).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity information disclosure flaw in CodeIgniter4's CURLRequest component (versions before 4.7.5) can leak sensitive credentials-such as Authorization headers, Basic Auth credentials, or request bodies-to unintended, less-trusted destinations when applications reuse the same client instance after catching an HTTP exception. This puts organizations using affected CodeIgniter4 applications at risk of credential theft, potentially leading to unauthorized access to downstream systems and data breaches. Leadership should prioritize remediation because the vulnerability directly threatens the confidentiality of authentication secrets and could undermine trust in internal and external integrations.

Business Impact: High
Compensating Controls

Vendor-released patch: 4.7.5

Threat Intelligence Overview

Prevalence
Medium
popular PHP MVC framework, but widely deployed below WordPress/nginx scale
Social Media
1
Sightings
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-63223 CRITICAL POC
9.8 Jul 31

Unauthenticated file upload validation bypass in the CodeIgniter4 PHP framework (versions prior to 4.7.4) lets a remote

CVE-2026-63221 CRITICAL POC
9.4 Jul 31

SQL injection in CodeIgniter4's Query Builder deleteBatch() method (versions 4.3.0 through 4.7.3) allows user-controlled

CVE-2026-63222 HIGH POC
7.5 Jul 31

Path traversal file write in the CodeIgniter4 PHP framework prior to 4.7.4 lets remote unauthenticated attackers place u

CVE-2026-142155 CRITICAL
9.3 Dec 02

Remote code execution in CodeIgniter4 before 4.7.5 stems from filename-based upload validation rules that can be tricked

CVE-2026-142150 CRITICAL
9.2 Dec 02

SQL injection in CodeIgniter4 through 4.7.5 lets unauthenticated remote attackers break out of an already-escaped string

CVE-2026-63220 MEDIUM POC
4.8 Jul 31

HTTP security header spoofing in CodeIgniter4 prior to 4.7.4 allows remote unauthenticated attackers to trick the framew

CVE-2026-142154 HIGH
8.7 Dec 02

PHP code injection in the CodeIgniter4 View Parser (versions before 4.7.5) lets users who can edit template source - for

CVE-2026-142153 HIGH
7.7 Dec 02

PHP code execution and unintended local file inclusion in CodeIgniter4 before 4.7.5 occur when view data is extracted in

CVE-2026-142152 MEDIUM
6.9 Dec 02

File upload validation bypass in CodeIgniter4 releases before 4.7.5 lets unauthenticated remote attackers slip a disallo

CVE-2026-130845 MEDIUM
5.3 Nov 17

Cross-site scripting in CodeIgniter4 before 4.7.5 allows an attacker who controls a single value rendered through the Vi

CVE-2026-142138 MEDIUM
5.3 Dec 02

Cross-site scripting in the CodeIgniter4 form helpers - parse_form_attributes(), form_input(), form_label(), form_dropdo

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy