GHSA-27qr-636m-wxg2: Codeigniter/framework SQL Injection Vulnerability

CRITICAL
CVSS 10.0
Published
Advisory Summary

GHSA-27qr-636m-wxg2 is a CRITICAL (CVSS 10.0) sql injection vulnerability (General Security Weakness) affecting Codeigniter/framework libraries in the Packagist ecosystem. The issue involves codeigniter/framework sql injection in odbc database driver. Remediation is available by upgrading affected packages to version 3.1.0.

GHSA-27qr-636m-wxg2 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-27qr-636m-wxg2
Severity CRITICAL
CVSS v3.1 Base Score 10.0
CWE Classification General Security Weakness
Affected Product Codeigniter/framework
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 10.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability Low (A:L)

How to Fix GHSA-27qr-636m-wxg2

To remediate this vulnerability, upgrade all affected Codeigniter/framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

codeigniter/framework fixed: 3.1.0
Upgrade codeigniter/framework to 3.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for codeigniter/framework

How to Check if You Are Affected

To determine whether your application is affected by GHSA-27qr-636m-wxg2, inspect your project dependencies for Codeigniter/framework:

inspect dependencies for codeigniter/framework

Analyze the terminal output to locate any version of Codeigniter/framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Codeigniter/framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

CodeIgniter 3.1.0 addressed a critical security issue within the ODBC database driver. This update includes crucial fixes to mitigate a SQL injection vulnerability, preventing potential exploitation by attackers. It is noteworthy that these fixes render the query builder and escape() functions incompatible with the ODBC driver. However, the update introduces actual query binding as a more secure alternative.

GHSA-27qr-636m-wxg2 Affected Codeigniter/framework Versions

1 component(s)
Fixed Versions:
3.1.0
Product / Package Ecosystem Affected Versions Fixed Version
codeigniter/framework
Packagist
< 3.1.0
3.1.0

References

Frequently Asked Questions

What is GHSA-27qr-636m-wxg2?
GHSA-27qr-636m-wxg2 is a security vulnerability in Codeigniter/framework involving codeigniter/framework SQL injection in ODBC database driver under General Security Weakness.
Which Codeigniter/framework versions are affected?
Affected versions include releases prior to 3.1.0 across affected packages: codeigniter/framework.
What version fixes GHSA-27qr-636m-wxg2?
Upgrading to 3.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is codeigniter/framework affected?
Yes, codeigniter/framework is affected in releases prior to 3.1.0. Upgrade your dependency to 3.1.0 or later.
What is the CVSS score of GHSA-27qr-636m-wxg2?
GHSA-27qr-636m-wxg2 has a CVSS v3.1 base score of 10.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L.
What CWE is associated with GHSA-27qr-636m-wxg2?
GHSA-27qr-636m-wxg2 is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-27qr-636m-wxg2?
Run the dependency tree command: 'inspect dependencies for codeigniter/framework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-27qr-636m-wxg2",
  "modified" : "2024-05-15T18:09:41Z",
  "published" : "2024-05-15T18:09:41Z",
  "aliases" : [ ],
  "summary" : "codeigniter/framework SQL injection in ODBC database driver",
  "details" : "CodeIgniter 3.1.0 addressed a critical security issue within the ODBC database driver. This update includes crucial fixes to mitigate a SQL injection vulnerability, preventing potential exploitation by attackers. It is noteworthy that these fixes render the query builder and escape() functions incompatible with the ODBC driver. However, the update introduces actual query binding as a more secure alternative.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "codeigniter/framework"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/simplysites/CodeIgniter/commit/3d10ffa77854044570a1809a884776fd4bbd8b70"
  }, {
    "type" : "WEB",
    "url" : "https://forum.codeigniter.com/thread-65803.html"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/codeigniter/framework/2016-07-26-1.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/simplysites/CodeIgniter"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T18:09:41Z",
    "nvd_published_at" : null
  }
}