GHSA-27qr-636m-wxg2: Codeigniter/framework SQL Injection Vulnerability
CRITICALGHSA-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
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).
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.
Upgrade codeigniter/framework to 3.1.0
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
GHSA-27qr-636m-wxg2 Affected Codeigniter/framework Versions
1 component(s)| 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?
Which Codeigniter/framework versions are affected?
What version fixes GHSA-27qr-636m-wxg2?
Is codeigniter/framework affected?
What is the CVSS score of GHSA-27qr-636m-wxg2?
What CWE is associated with GHSA-27qr-636m-wxg2?
How can I check Packagist dependencies for GHSA-27qr-636m-wxg2?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}