CVEfocus › CVE database › CVE-2026-63221

CVE-2026-63221CodeIgniter: SQL injection is possible via Query Builder deleteBatch() when used with…

CVSS 9.4 CriticalEPSS 0.6% (higher than 44% of CVEs)Published 2026-07-31Updated 2026-07-31Assigner: GitHub_M

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.

CWE-89

What to do

Fixed builds are available from Packagist: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
1Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10php-codeigniter-frameworkFix pendingUBUNTU-CVE-2026-63221
Ubuntu 26.04php-codeigniter-frameworkNot affected
vulnerable_code_not_present
Ubuntu 24.04php-codeigniter-frameworkNot affected
vulnerable_code_not_present
Packagist librarycodeigniter4/frameworkFixed4.7.4GHSA-c9w5-rwh3-7pm9

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.