SQL injection in ADOdb - CVE-2025-46337
Published: June 18, 2025 / Updated: June 18, 2025
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
Moodle
Fedora
Ubuntu
libphp-adodb (Ubuntu package)
php-adodb
How to mitigate CVE-2025-46337
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
- https://github.com/ADOdb/ADOdb/commit/11107d6d6e5160b62e05dff8a3a2678cf0e3a426
- https://github.com/ADOdb/ADOdb/issues/1070
- https://github.com/ADOdb/ADOdb/security/advisories/GHSA-8x27-jwjr-8545
- https://lists.debian.org/debian-lts-announce/2025/05/msg00029.html
- https://xaliom.blogspot.com/2025/05/from-sast-to-cve-2025-46337.html