diff --git a/advisories/github-reviewed/2025/05/GHSA-8x27-jwjr-8545/GHSA-8x27-jwjr-8545.json b/advisories/github-reviewed/2025/05/GHSA-8x27-jwjr-8545/GHSA-8x27-jwjr-8545.json new file mode 100644 index 00000000000..91e658de171 --- /dev/null +++ b/advisories/github-reviewed/2025/05/GHSA-8x27-jwjr-8545/GHSA-8x27-jwjr-8545.json @@ -0,0 +1,68 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-8x27-jwjr-8545", + "modified": "2025-05-01T13:59:51Z", + "published": "2025-05-01T13:59:51Z", + "aliases": [ + "CVE-2025-46337" + ], + "summary": "SQL injection in ADOdb PostgreSQL driver pg_insert_id() method", + "details": "Improper escaping of a query parameter may allow an attacker to execute arbitrary SQL statements when the code using ADOdb connects to a PostgreSQL database and calls pg_insert_id() with user-supplied data.\n\nNote that the indicated Severity corresponds to a worst-case usage scenario.\n\n### Impact\nPostgreSQL drivers (postgres64, postgres7, postgres8, postgres9).\n\n### Patches\nVulnerability is fixed in ADOdb 5.22.9 (11107d6d6e5160b62e05dff8a3a2678cf0e3a426).\n\n### Workarounds\nOnly pass controlled data to pg_insert_id() method's $fieldname parameter, or escape it with pg_escape_identifier() first.\n\n### Credits\nThanks to Marco Nappi (@mrcnpp) for reporting this vulnerability.", + "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": "adodb/adodb-php" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "5.22.9" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "<= 5.22.8" + } + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/ADOdb/ADOdb/security/advisories/GHSA-8x27-jwjr-8545" + }, + { + "type": "WEB", + "url": "https://github.com/ADOdb/ADOdb/issues/1070" + }, + { + "type": "WEB", + "url": "https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426" + }, + { + "type": "PACKAGE", + "url": "https://github.com/ADOdb/ADOdb" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-89" + ], + "severity": "CRITICAL", + "github_reviewed": true, + "github_reviewed_at": "2025-05-01T13:59:51Z", + "nvd_published_at": null + } +} \ No newline at end of file