{
  "id": "CVE-2026-63221",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-63221",
  "published_at": "2026-07-31T04:03:34.352Z",
  "title": "CodeIgniter: SQL injection is possible via Query Builder deleteBatch() when used with where() conditions",
  "vendor": "codeigniter4",
  "product": "CodeIgniter4",
  "cvss": {
    "score": 9.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-89",
  "cvss_by_source": {
    "cna": 9.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "codeigniter4",
        "product": "CodeIgniter4",
        "ranges": [
          "\u003e= 4.3.0, \u003c 4.7.4"
        ],
        "fixed_in": [
          "4.7.4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade CodeIgniter4 to 4.7.4 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/codeigniter4/CodeIgniter4/security/advisories/GHSA-c9w5-rwh3-7pm9"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/codeigniter4/CodeIgniter4/commit/f5e463b9a3e986389ce285963e51a7f1fab6559f"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/codeigniter4/CodeIgniter4/releases/tag/v4.7.4"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
