{"id":"CVE-2026-63221","published":"2026-07-31T04:03:34Z","modified":"2026-07-31T13:52:40Z","title":"CodeIgniter: SQL injection is possible via Query Builder deleteBatch() when used with where() conditions","vendor":"codeigniter4","product":"CodeIgniter4","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00612,"percentile":0.50255,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-c9w5-rwh3-7pm9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/codeigniter4/CodeIgniter4/commit/f5e463b9a3e986389ce285963e51a7f1fab6559f","tags":["x_refsource_MISC"]},{"url":"https://github.com/codeigniter4/CodeIgniter4/releases/tag/v4.7.4","tags":["x_refsource_MISC"]}],"priority":{"score":16.6,"factors":[{"name":"EPSS percentile","points":10.05},{"name":"CVSS severity","points":6.58}]},"vendorSlug":"codeigniter4","affectedVersions":[{"vendor":"codeigniter4","product":"CodeIgniter4","versions":[">= 4.3.0, < 4.7.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-31T13:48:17.706062Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"codeigniter4/framework","vulnerableRanges":[">=4.3.0, <4.7.4"],"patched":["4.7.4"],"from":["GHSA-c9w5-rwh3-7pm9"],"provenance":"source"}],"summary":{"text":"A SQL injection flaw exists in the deleteBatch() method of the Query Builder component in CodeIgniter4, the PHP web framework, affecting versions 4.3.0 through 4.7.3, where values bound from where() conditions are substituted into generated SQL without their escape flags being applied. An attacker who can supply the values used in those conditions over the network can have them interpreted as SQL, with no authentication or user interaction required and no special configuration; the regular delete() path is not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:50:15Z"},"euvd":{"id":"EUVD-2026-51397","exploited":false,"provenance":"source"}}