GHSA-h63c-xvpf-264j: Adodb/adodb php SQL Injection Vulnerability
CRITICALGHSA-h63c-xvpf-264j is a CRITICAL sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Adodb/adodb php libraries in the Packagist ecosystem. The issue involves adodb sql injection vulnerability. Remediation is available by upgrading affected packages to version 5.20.11.
GHSA-h63c-xvpf-264j at a Glance
How to Fix GHSA-h63c-xvpf-264j
To remediate this vulnerability, upgrade all affected Adodb/adodb php 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 adodb/adodb-php to 5.20.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for adodb/adodb-php
How to Check if You Are Affected
To determine whether your application is affected by GHSA-h63c-xvpf-264j, inspect your project dependencies for Adodb/adodb php:
inspect dependencies for adodb/adodb-php
Analyze the terminal output to locate any version of Adodb/adodb php in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.20.11), 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 CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Adodb/adodb php, 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-h63c-xvpf-264j Affected Adodb/adodb php Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
adodb/adodb-php
|
Packagist |
< 5.20.11
|
5.20.11
|
References
Frequently Asked Questions
What is GHSA-h63c-xvpf-264j?
Which Adodb/adodb php versions are affected?
What version fixes GHSA-h63c-xvpf-264j?
Is adodb/adodb-php affected?
What CWE is associated with GHSA-h63c-xvpf-264j?
How can I check Packagist dependencies for GHSA-h63c-xvpf-264j?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h63c-xvpf-264j",
"modified" : "2024-05-15T17:44:48Z",
"published" : "2024-05-15T17:44:48Z",
"aliases" : [ ],
"summary" : "ADOdb SQL injection vulnerability",
"details" : "The ADOdb Library for PHP prior to version 5.20.11 is prone to SQL Injection vulnerability in multiple drivers.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "adodb/adodb-php"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.20.11"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ADOdb/ADOdb/pull/311"
}, {
"type" : "WEB",
"url" : "https://github.com/ADOdb/ADOdb/pull/401"
}, {
"type" : "WEB",
"url" : "https://github.com/dregad/ADOdb/commit/34788ce8c1d08500631f55764cc2247b9c7cfd2b"
}, {
"type" : "WEB",
"url" : "https://github.com/dregad/ADOdb/commit/d29c23f2264ec95c6d3851e0f51ce240b2f36b74"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/adodb/adodb-php/2018-03-06.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-15T17:44:48Z",
"nvd_published_at" : null
}
}