{"items":[{"id":"NVI-00005693","kind":"vulnerability","title":"Authentication Bypass in ADOdb/ADOdb","revision":4,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-65mj-7c86-79jf","CVE-2021-3850"],"plain_summary":"OSV carries this publisher advisory for adodb/adodb-php, adodb/adodb-php. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 5.20.21 for adodb/adodb-php. Confirm the publisher’s latest guidance.","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"The original advisory lists fixed boundaries 5.21.4 for adodb/adodb-php. Confirm the publisher’s latest guidance.","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-075f1511698cfe8d341069df3baf0c30"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-06-17T04:05:53.547Z","value":"6.4 MEDIUM (2.0)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-a526f7ea02fee56b0e76acd19a104eec"},{"kind":"CVSS","as_of":"2026-06-17T04:05:53.547Z","value":"9.1 CRITICAL (3.0)","meaning":"security@huntr.dev severity; no combined Null risk score.","source_id":"sr-a526f7ea02fee56b0e76acd19a104eec"},{"kind":"CVSS","as_of":"2026-06-17T04:05:53.547Z","value":"9.1 CRITICAL (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-a526f7ea02fee56b0e76acd19a104eec"},{"kind":"EPSS","as_of":"2026-11-04T12:03:12.000Z","value":"2.170%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.82331. Missing scores are unknown.","source_id":"sr-075f1511698cfe8d341069df3baf0c30"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-98fed889d2c4bab01cc651cd58784d6d","url":"https://github.com/advisories/GHSA-65mj-7c86-79jf","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-65mj-7c86-79jf","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.930Z"},{"id":"sr-a526f7ea02fee56b0e76acd19a104eec","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3850","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2021-3850","publisher":"NIST National Vulnerability Database","observed_at":"2026-10-31T23:13:41.256Z"},{"id":"sr-075f1511698cfe8d341069df3baf0c30","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2021-3850","publisher":"FIRST EPSS","observed_at":"2026-11-04T17:57:29.219Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"technology":"adodb/adodb-php","known_exclusions":[],"conditions_summary":"### Impact\n\nAn attacker can inject values into a PostgreSQL connection string by providing a parameter surrounded by single quotes.\n\nDepending on how the library is used in the client software, this may allow an attacker to bypass the login process, gain access to the server's IP address, etc.\n\n### Patches\n\nThe vulnerability is fixed in ADOdb versions 5.20.21 (952de6c4273d9b1e91c2b838044f8c2111150c29) and 5.21.4 or later (b4d5ce70034c5aac3a1d51d317d93c037a0938d2).\n\nThe simplest patch is to delete line 29 in `drivers/adodb-postgres64.inc.php`:\n\n```php\ndiff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php\nindex d04b7f67..729d7141 100644\n--- a/drivers/adodb-postgres64.inc.php\n+++ b/drivers/adodb-postgres64.inc.php\n@@ -26,7 +26,6 @@ function adodb_addslashes($s)\n {\n    $len = strlen($s);\n    if ($len == 0) return \"''\";\n-   if (strncmp($s,\"'\",1) === 0 && substr($s,$len-1) == \"'\") return $s; // already quoted\n \n    return \"'\".addslashes($s).\"'\";\n }\n```\n\n### Workarounds\n\nEnsure the parameters passed to *ADOConnection::connect()* or related functions (_nConnect()_, _pConnect()_) are not surrounded by single quotes.\n\n### Credits\n\nThanks to **Emmet Leahy** (@meme-l","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 5.20.21"]},{"certainty":"source_listed","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"technology":"adodb/adodb-php","known_exclusions":[],"conditions_summary":"### Impact\n\nAn attacker can inject values into a PostgreSQL connection string by providing a parameter surrounded by single quotes.\n\nDepending on how the library is used in the client software, this may allow an attacker to bypass the login process, gain access to the server's IP address, etc.\n\n### Patches\n\nThe vulnerability is fixed in ADOdb versions 5.20.21 (952de6c4273d9b1e91c2b838044f8c2111150c29) and 5.21.4 or later (b4d5ce70034c5aac3a1d51d317d93c037a0938d2).\n\nThe simplest patch is to delete line 29 in `drivers/adodb-postgres64.inc.php`:\n\n```php\ndiff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php\nindex d04b7f67..729d7141 100644\n--- a/drivers/adodb-postgres64.inc.php\n+++ b/drivers/adodb-postgres64.inc.php\n@@ -26,7 +26,6 @@ function adodb_addslashes($s)\n {\n    $len = strlen($s);\n    if ($len == 0) return \"''\";\n-   if (strncmp($s,\"'\",1) === 0 && substr($s,$len-1) == \"'\") return $s; // already quoted\n \n    return \"'\".addslashes($s).\"'\";\n }\n```\n\n### Workarounds\n\nEnsure the parameters passed to *ADOConnection::connect()* or related functions (_nConnect()_, _pConnect()_) are not surrounded by single quotes.\n\n### Credits\n\nThanks to **Emmet Leahy** (@meme-l","public_affected_ranges":["ECOSYSTEM: introduced 5.21.0; fixed 5.21.4"]}],"null_published_at":"2026-11-06T15:18:17.656Z","source_updated_at":"2023-11-08T04:06:27.757Z","source_disclosed_at":"2022-01-27T15:23:19.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Source facts changed; compare the preserved prior revision.","null_first_observed_at":"2026-10-31T21:41:59.930Z"},{"id":"NVI-00005693","kind":"vulnerability","title":"Authentication Bypass in ADOdb/ADOdb","revision":3,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-65mj-7c86-79jf","CVE-2021-3850"],"plain_summary":"OSV carries this publisher advisory for adodb/adodb-php, adodb/adodb-php. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 5.20.21 for adodb/adodb-php. Confirm the publisher’s latest guidance.","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"The original advisory lists fixed boundaries 5.21.4 for adodb/adodb-php. Confirm the publisher’s latest guidance.","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-075f1511698cfe8d341069df3baf0c30"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"EPSS","as_of":"2026-11-04T12:03:12.000Z","value":"2.170%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.82331. Missing scores are unknown.","source_id":"sr-075f1511698cfe8d341069df3baf0c30"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-98fed889d2c4bab01cc651cd58784d6d","url":"https://github.com/advisories/GHSA-65mj-7c86-79jf","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-65mj-7c86-79jf","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.930Z"},{"id":"sr-075f1511698cfe8d341069df3baf0c30","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2021-3850","publisher":"FIRST EPSS","observed_at":"2026-11-04T17:57:29.219Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"technology":"adodb/adodb-php","known_exclusions":[],"conditions_summary":"### Impact\n\nAn attacker can inject values into a PostgreSQL connection string by providing a parameter surrounded by single quotes.\n\nDepending on how the library is used in the client software, this may allow an attacker to bypass the login process, gain access to the server's IP address, etc.\n\n### Patches\n\nThe vulnerability is fixed in ADOdb versions 5.20.21 (952de6c4273d9b1e91c2b838044f8c2111150c29) and 5.21.4 or later (b4d5ce70034c5aac3a1d51d317d93c037a0938d2).\n\nThe simplest patch is to delete line 29 in `drivers/adodb-postgres64.inc.php`:\n\n```php\ndiff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php\nindex d04b7f67..729d7141 100644\n--- a/drivers/adodb-postgres64.inc.php\n+++ b/drivers/adodb-postgres64.inc.php\n@@ -26,7 +26,6 @@ function adodb_addslashes($s)\n {\n    $len = strlen($s);\n    if ($len == 0) return \"''\";\n-   if (strncmp($s,\"'\",1) === 0 && substr($s,$len-1) == \"'\") return $s; // already quoted\n \n    return \"'\".addslashes($s).\"'\";\n }\n```\n\n### Workarounds\n\nEnsure the parameters passed to *ADOConnection::connect()* or related functions (_nConnect()_, _pConnect()_) are not surrounded by single quotes.\n\n### Credits\n\nThanks to **Emmet Leahy** (@meme-l","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 5.20.21"]},{"certainty":"source_listed","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"technology":"adodb/adodb-php","known_exclusions":[],"conditions_summary":"### Impact\n\nAn attacker can inject values into a PostgreSQL connection string by providing a parameter surrounded by single quotes.\n\nDepending on how the library is used in the client software, this may allow an attacker to bypass the login process, gain access to the server's IP address, etc.\n\n### Patches\n\nThe vulnerability is fixed in ADOdb versions 5.20.21 (952de6c4273d9b1e91c2b838044f8c2111150c29) and 5.21.4 or later (b4d5ce70034c5aac3a1d51d317d93c037a0938d2).\n\nThe simplest patch is to delete line 29 in `drivers/adodb-postgres64.inc.php`:\n\n```php\ndiff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php\nindex d04b7f67..729d7141 100644\n--- a/drivers/adodb-postgres64.inc.php\n+++ b/drivers/adodb-postgres64.inc.php\n@@ -26,7 +26,6 @@ function adodb_addslashes($s)\n {\n    $len = strlen($s);\n    if ($len == 0) return \"''\";\n-   if (strncmp($s,\"'\",1) === 0 && substr($s,$len-1) == \"'\") return $s; // already quoted\n \n    return \"'\".addslashes($s).\"'\";\n }\n```\n\n### Workarounds\n\nEnsure the parameters passed to *ADOConnection::connect()* or related functions (_nConnect()_, _pConnect()_) are not surrounded by single quotes.\n\n### Credits\n\nThanks to **Emmet Leahy** (@meme-l","public_affected_ranges":["ECOSYSTEM: introduced 5.21.0; fixed 5.21.4"]}],"null_published_at":"2026-11-06T07:24:11.274Z","source_updated_at":"2023-11-08T04:06:27.757Z","source_disclosed_at":"2022-01-27T15:23:19.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Dated EPSS estimate updated; this is not a new disclosure or proof of exploitation.","null_first_observed_at":"2026-10-31T21:41:59.930Z"},{"id":"NVI-00005693","kind":"vulnerability","title":"Authentication Bypass in ADOdb/ADOdb","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-65mj-7c86-79jf","CVE-2021-3850"],"plain_summary":"OSV carries this publisher advisory for adodb/adodb-php, adodb/adodb-php. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 5.20.21 for adodb/adodb-php. Confirm the publisher’s latest guidance.","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"The original advisory lists fixed boundaries 5.21.4 for adodb/adodb-php. Confirm the publisher’s latest guidance.","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-9582ace53ec9a4aac20cb77c43470e0a"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"2.170%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.82279. Missing scores are unknown.","source_id":"sr-9582ace53ec9a4aac20cb77c43470e0a"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-98fed889d2c4bab01cc651cd58784d6d","url":"https://github.com/advisories/GHSA-65mj-7c86-79jf","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-65mj-7c86-79jf","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.930Z"},{"id":"sr-9582ace53ec9a4aac20cb77c43470e0a","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2021-3850","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:03.704Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"technology":"adodb/adodb-php","known_exclusions":[],"conditions_summary":"### Impact\n\nAn attacker can inject values into a PostgreSQL connection string by providing a parameter surrounded by single quotes.\n\nDepending on how the library is used in the client software, this may allow an attacker to bypass the login process, gain access to the server's IP address, etc.\n\n### Patches\n\nThe vulnerability is fixed in ADOdb versions 5.20.21 (952de6c4273d9b1e91c2b838044f8c2111150c29) and 5.21.4 or later (b4d5ce70034c5aac3a1d51d317d93c037a0938d2).\n\nThe simplest patch is to delete line 29 in `drivers/adodb-postgres64.inc.php`:\n\n```php\ndiff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php\nindex d04b7f67..729d7141 100644\n--- a/drivers/adodb-postgres64.inc.php\n+++ b/drivers/adodb-postgres64.inc.php\n@@ -26,7 +26,6 @@ function adodb_addslashes($s)\n {\n    $len = strlen($s);\n    if ($len == 0) return \"''\";\n-   if (strncmp($s,\"'\",1) === 0 && substr($s,$len-1) == \"'\") return $s; // already quoted\n \n    return \"'\".addslashes($s).\"'\";\n }\n```\n\n### Workarounds\n\nEnsure the parameters passed to *ADOConnection::connect()* or related functions (_nConnect()_, _pConnect()_) are not surrounded by single quotes.\n\n### Credits\n\nThanks to **Emmet Leahy** (@meme-l","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 5.20.21"]},{"certainty":"source_listed","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"technology":"adodb/adodb-php","known_exclusions":[],"conditions_summary":"### Impact\n\nAn attacker can inject values into a PostgreSQL connection string by providing a parameter surrounded by single quotes.\n\nDepending on how the library is used in the client software, this may allow an attacker to bypass the login process, gain access to the server's IP address, etc.\n\n### Patches\n\nThe vulnerability is fixed in ADOdb versions 5.20.21 (952de6c4273d9b1e91c2b838044f8c2111150c29) and 5.21.4 or later (b4d5ce70034c5aac3a1d51d317d93c037a0938d2).\n\nThe simplest patch is to delete line 29 in `drivers/adodb-postgres64.inc.php`:\n\n```php\ndiff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php\nindex d04b7f67..729d7141 100644\n--- a/drivers/adodb-postgres64.inc.php\n+++ b/drivers/adodb-postgres64.inc.php\n@@ -26,7 +26,6 @@ function adodb_addslashes($s)\n {\n    $len = strlen($s);\n    if ($len == 0) return \"''\";\n-   if (strncmp($s,\"'\",1) === 0 && substr($s,$len-1) == \"'\") return $s; // already quoted\n \n    return \"'\".addslashes($s).\"'\";\n }\n```\n\n### Workarounds\n\nEnsure the parameters passed to *ADOConnection::connect()* or related functions (_nConnect()_, _pConnect()_) are not surrounded by single quotes.\n\n### Credits\n\nThanks to **Emmet Leahy** (@meme-l","public_affected_ranges":["ECOSYSTEM: introduced 5.21.0; fixed 5.21.4"]}],"null_published_at":"2026-11-04T02:53:03.148Z","source_updated_at":"2023-11-08T04:06:27.757Z","source_disclosed_at":"2022-01-27T15:23:19.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Dated EPSS estimate updated; this is not a new disclosure or proof of exploitation.","null_first_observed_at":"2026-10-31T21:41:59.930Z"},{"id":"NVI-00005693","kind":"vulnerability","title":"Authentication Bypass in ADOdb/ADOdb","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-65mj-7c86-79jf","CVE-2021-3850"],"plain_summary":"OSV carries this publisher advisory for adodb/adodb-php, adodb/adodb-php. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 5.20.21 for adodb/adodb-php. Confirm the publisher’s latest guidance.","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"The original advisory lists fixed boundaries 5.21.4 for adodb/adodb-php. Confirm the publisher’s latest guidance.","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-98fed889d2c4bab01cc651cd58784d6d","url":"https://github.com/advisories/GHSA-65mj-7c86-79jf","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-65mj-7c86-79jf","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.930Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"technology":"adodb/adodb-php","known_exclusions":[],"conditions_summary":"### Impact\n\nAn attacker can inject values into a PostgreSQL connection string by providing a parameter surrounded by single quotes.\n\nDepending on how the library is used in the client software, this may allow an attacker to bypass the login process, gain access to the server's IP address, etc.\n\n### Patches\n\nThe vulnerability is fixed in ADOdb versions 5.20.21 (952de6c4273d9b1e91c2b838044f8c2111150c29) and 5.21.4 or later (b4d5ce70034c5aac3a1d51d317d93c037a0938d2).\n\nThe simplest patch is to delete line 29 in `drivers/adodb-postgres64.inc.php`:\n\n```php\ndiff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php\nindex d04b7f67..729d7141 100644\n--- a/drivers/adodb-postgres64.inc.php\n+++ b/drivers/adodb-postgres64.inc.php\n@@ -26,7 +26,6 @@ function adodb_addslashes($s)\n {\n    $len = strlen($s);\n    if ($len == 0) return \"''\";\n-   if (strncmp($s,\"'\",1) === 0 && substr($s,$len-1) == \"'\") return $s; // already quoted\n \n    return \"'\".addslashes($s).\"'\";\n }\n```\n\n### Workarounds\n\nEnsure the parameters passed to *ADOConnection::connect()* or related functions (_nConnect()_, _pConnect()_) are not surrounded by single quotes.\n\n### Credits\n\nThanks to **Emmet Leahy** (@meme-l","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 5.20.21"]},{"certainty":"source_listed","source_ids":["sr-98fed889d2c4bab01cc651cd58784d6d"],"technology":"adodb/adodb-php","known_exclusions":[],"conditions_summary":"### Impact\n\nAn attacker can inject values into a PostgreSQL connection string by providing a parameter surrounded by single quotes.\n\nDepending on how the library is used in the client software, this may allow an attacker to bypass the login process, gain access to the server's IP address, etc.\n\n### Patches\n\nThe vulnerability is fixed in ADOdb versions 5.20.21 (952de6c4273d9b1e91c2b838044f8c2111150c29) and 5.21.4 or later (b4d5ce70034c5aac3a1d51d317d93c037a0938d2).\n\nThe simplest patch is to delete line 29 in `drivers/adodb-postgres64.inc.php`:\n\n```php\ndiff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php\nindex d04b7f67..729d7141 100644\n--- a/drivers/adodb-postgres64.inc.php\n+++ b/drivers/adodb-postgres64.inc.php\n@@ -26,7 +26,6 @@ function adodb_addslashes($s)\n {\n    $len = strlen($s);\n    if ($len == 0) return \"''\";\n-   if (strncmp($s,\"'\",1) === 0 && substr($s,$len-1) == \"'\") return $s; // already quoted\n \n    return \"'\".addslashes($s).\"'\";\n }\n```\n\n### Workarounds\n\nEnsure the parameters passed to *ADOConnection::connect()* or related functions (_nConnect()_, _pConnect()_) are not surrounded by single quotes.\n\n### Credits\n\nThanks to **Emmet Leahy** (@meme-l","public_affected_ranges":["ECOSYSTEM: introduced 5.21.0; fixed 5.21.4"]}],"null_published_at":"2026-10-31T22:13:05.835Z","source_updated_at":"2023-11-08T04:06:27.757Z","source_disclosed_at":"2022-01-27T15:23:19.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:41:59.930Z"}],"next_cursor":null,"snapshot_revision":"42594"}