CVE-2026-142151: CodeIgniter4 before 4.7.5 Credential Disclosure via CURLRequest Option Persistence
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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to credential disclosure?
Deployments using CodeIgniter4 versions before 4.7.5 are affected when a CURLRequest client is reused after an exception. The issue can expose data from a previous request to the recipient of a later request.
What must occur for credentials or request data to leak?
A request made through CURLRequest::request() must raise an exception, leaving its options on the client. A later request using that same client can then send the prior Authorization header, Basic Auth credentials, or request body to its recipient.
Does disabling shareOptions prevent this issue?
No. The vulnerability occurs even when shareOptions is set to false, because request options can remain on the client after an exception.
How can I assess whether sensitive data may have been exposed?
Review applications using reused CURLRequest clients for exception paths followed by later requests. Determine whether the failed request contained an Authorization header, Basic Auth credentials, or sensitive request-body data, and identify the destination of the subsequent request.
What version resolves the issue?
Upgrade CodeIgniter4 to version 4.7.5 or later.