CVE-2025-46337
PHP vulnerability analysis and mitigation

Overview

ADOdb, a PHP database class library that provides abstractions for performing queries and managing databases, was found to contain a critical SQL injection vulnerability (CVE-2025-46337) prior to version 5.22.9. The vulnerability was discovered by Marco Nappi (@mrcnpp) and disclosed on May 1, 2025. The issue affects the PostgreSQL drivers (postgres64, postgres7, postgres8, postgres9) in the ADOdb library (GitHub Advisory).

Technical details

The vulnerability stems from improper escaping of query parameters in the pginsertid() method when connecting to a PostgreSQL database. The issue received a CVSS v3.1 base score of 10.0 (Critical) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L. The vulnerability is classified as CWE-89 (SQL Injection) (GitHub Advisory, NVD).

Impact

When exploited, this vulnerability allows attackers to execute arbitrary SQL statements through user-supplied data passed to the pginsertid() method. The high severity rating indicates potential for significant data breach and system compromise, with high impact on both confidentiality and integrity of the affected systems (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in ADOdb version 5.22.9. For users unable to update immediately, a workaround is available: only pass controlled data to pginsertid() method's $fieldname parameter, or escape it with pgescapeidentifier() first. The fix involves proper escaping of the sequence name using pgescapeidentifier() (GitHub Commit, GitHub Advisory).

Community reactions

The vulnerability was initially discovered through Static Analysis Security Testing (SAST) by security researcher Marco Nappi, who documented the discovery process in a detailed blog post. The ADOdb maintainers, particularly Dregad, were praised for their professional handling of the vulnerability disclosure and patch release process (Xaliom Blog).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management