SQL injection in ADOdb - CVE-2025-46337

 

SQL injection in ADOdb - CVE-2025-46337

Published: June 18, 2025 / Updated: June 18, 2025


Vulnerability identifier: #VU111254
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-46337
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary SQL queries in database.

The vulnerability exists due to insufficient sanitization of user-supplied data in ADOdb PostgreSQL driver within pg_insert_id() method. A remote attacker can send a specially crafted request to the affected application and execute arbitrary SQL commands within the application database.

Successful exploitation of this vulnerability may allow a remote attacker to read, delete, modify data in database and gain complete control over the affected application.


Affected software

ADOdb
Moodle
Fedora
Ubuntu
libphp-adodb (Ubuntu package)
php-adodb

How to mitigate CVE-2025-46337

Install updates from vendor's website.

ADOdb - update to 5.22.9
Moodle - addressed in versions 4.1.19, 4.4.9, 4.5.5, 5.0.1
libphp-adodb (Ubuntu package) - addressed in versions 5.22.7-0.1ubuntu0.1, 5.22.8-0.1ubuntu0.1
php-adodb - addressed in versions 5.22.9-1.el8, 5.22.9-1.fc40, 5.22.9-1.fc41, 5.22.9-1.fc42

External References

Related Security Bulletins