GHSA-h63c-xvpf-264j: Adodb/adodb php SQL Injection Vulnerability

CRITICAL
CWE-89
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-h63c-xvpf-264j
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Adodb/adodb php
Package Ecosystem Packagist
Published Date
Last Updated

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.

adodb/adodb-php fixed: 5.20.11
Upgrade adodb/adodb-php to 5.20.11
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 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

The ADOdb Library for PHP prior to version 5.20.11 is prone to SQL Injection vulnerability in multiple drivers.

GHSA-h63c-xvpf-264j Affected Adodb/adodb php Versions

1 component(s)
Fixed Versions:
5.20.11
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?
GHSA-h63c-xvpf-264j is a security vulnerability in Adodb/adodb php involving ADOdb SQL injection vulnerability under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Adodb/adodb php versions are affected?
Affected versions include releases prior to 5.20.11 across affected packages: adodb/adodb-php.
What version fixes GHSA-h63c-xvpf-264j?
Upgrading to 5.20.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is adodb/adodb-php affected?
Yes, adodb/adodb-php is affected in releases prior to 5.20.11. Upgrade your dependency to 5.20.11 or later.
What CWE is associated with GHSA-h63c-xvpf-264j?
GHSA-h63c-xvpf-264j is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (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.).
How can I check Packagist dependencies for GHSA-h63c-xvpf-264j?
Run the dependency tree command: 'inspect dependencies for adodb/adodb-php'. 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-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
  }
}