Skip to content
OpenAdvisories
Critical · 9.4 CVE-2026-63221 EUVD-2026-51397GHSA-c9w5-rwh3-7pm9

CodeIgniter: SQL injection is possible via Query Builder deleteBatch() when used with where() conditions

Published Jul 31, 2026 · Updated Jul 31, 2026 · Assigned by GitHub_M

Description

CodeIgniter is a PHP full-stack web framework. From 4.3.0 through 4.7.3, Query Builder deleteBatch() substitutes bound values from where() conditions into generated SQL while ignoring their escape flags, allowing user-controlled condition values to be interpreted as SQL. This affects only the deleteBatch() code path. Regular delete() operations escape where() binds correctly. This issue is fixed in version 4.7.4.

Affected products

VendorProductAffectedFixed
codeigniter4 CodeIgniter4 >= 4.3.0, < 4.7.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 php-codeigniter-framework No fix yet —
Ubuntu 26.04 LTS php-codeigniter-framework No fix yet —
Ubuntu 24.04 LTS php-codeigniter-framework No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist codeigniter4/framework >= 4.3.0, < 4.7.4 4.7.4 GHSA-c9w5-rwh3-7pm9

References