Critical SQL Injection Vulnerability Found in ADOdb PostgreSQL Driver
A severe security flaw has been discovered in ADOdb, a popular database abstraction library for PHP. The issue affects environments using PostgreSQL and could allow attackers to execute arbitrary SQL commands. The vulnerability has been assigned CVE-2025-46337 and rated as Critical.
ADOdb is a widely used PHP library that simplifies database interactions by offering support for multiple database systems, including MySQL, PostgreSQL, SQLite, and others. It’s favored for its consistency and portability in managing database operations across different platforms.
The flaw resides specifically in ADOdb’s PostgreSQL driver. Due to improper escaping of certain input parameters, attackers can inject and execute malicious SQL statements. This makes systems running ADOdb with PostgreSQL highly vulnerable to SQL injection attacks.
According to the official report on GitHub, this vulnerability has been given the highest CVSS v3.1 base score of 10.0, marking it as Critical. That means it can potentially lead to full system compromise if exploited.
The ADOdb development team has responded swiftly by releasing version 5.22.9 on May 1, 2025, which includes a fix for this vulnerability. In addition to addressing CVE-2025-46337, this release also resolves bugs related to:
Developers using PostgreSQL with ADOdb are strongly urged to update to this version without delay to prevent potential exploitation.
If your project is using Composer, updating is simple:
composer update adodb/adodb-php
Or manually download the latest version from the official ADOdb GitHub repository.
Security in web applications is only as strong as its components. Vulnerabilities like this one highlight the importance of regularly monitoring third-party libraries and applying patches immediately. Especially in production environments handling sensitive user data, keeping dependencies up to date is critical.
If you’re using PostgreSQL with ADOdb, take this warning seriously and update now.