SB2026112398 - Multiple vulnerabilities in CodeIgniter4
Published: November 23, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 4 vulnerabilities.
1) SQL injection (CVE-ID: N/A)
CWE-ID: CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVSSv4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to execute arbitrary SQL with the application's database privileges.
The vulnerability exists due to improper SQL literal handling in Query Builder and $db->query() when named bind substitution modifies already escaped literals, or when deleteBatch() substitutes batch rows into a quoted value. A remote attacker can supply input to multiple values used to assemble the same query to alter its SQL structure and execute arbitrary SQL.
2) Path traversal (CVE-ID: N/A)
CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to read or write files outside the intended directory if the application uses the sanitized result in filesystem operations.
The vulnerability exists due to improper neutralization of backslashes in sanitize_filename() and its Security::sanitizeFilename() alias when slash stripping changes the input after traversal filtering. A remote attacker can submit crafted filenames or paths to cause directory traversal in relative-path mode on any platform or in either mode on Windows, or to introduce a NUL byte into the sanitized result.
3) Improperly Controlled Modification of Dynamically-Determined Object Attributes (CVE-ID: N/A)
CWE-ID: CWE-915 - Improperly Controlled Modification of Dynamically-Determined Object Attributes
CVSSv4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote user to modify protected database columns, potentially escalating privileges, tampering with business data, or overwriting audit fields.
The vulnerability exists due to a mass assignment protection bypass in Model::replace() when the method forwards user-controlled data to the query builder without applying the model's field allowlist. A remote user can supply values for fields outside the allowlist to modify protected columns in applications that rely on that allowlist.
4) Path traversal (CVE-ID: N/A)
CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVSSv4: 8.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to delete files outside the configured cache directory that the PHP process has permission to delete, potentially causing application data loss or denial of service.
The vulnerability exists due to path traversal in FileHandler::deleteMatching() when resolving cache key patterns without checking whether the matched files are inside the cache directory. A remote attacker can supply input through an application that uses the file cache handler and exposes control over all or part of a deletion pattern to delete files outside that directory.
Remediation
Install update from vendor's website.
References
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-25rf-99hr-7pmr
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-9j59-qcxw-q7qm
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-jv74-fx4h-m63x
- https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-9hf2-g3w9-pfmp