CVE-2025-46337CWE-89

SQL injection in ADOdb PostgreSQL driver pg_insert_id() method

Critical · published May 1, 2025

CVSS v3.1
10.0
EPSS
1%
Percentile
54.2
In the wild
Unconfirmed
What it is

🚨 A tiny oversight in ADOdb could unleash a SQL storm! An improperly escaped query parameter could let attackers execute any SQL command they please — talk about a recipe for disaster! 🔥 Think of it like a restaurant where the chef accepts orders without checking them. A customer could request absolutely anything, even a dish that ruins the entire kitchen operation! With this vulnerability, an attacker could insert malicious SQL commands, leading to unauthorized data access, alteration, or even deletion. Imagine someone walking in and changing the entire menu to their liking or, worse, emptying the fridge completely — absolutely devastating!

Put simply

Think of it like a restaurant where the chef accepts orders without checking them. A customer could request absolutely anything, even a dish that ruins the entire kitchen operation! This vulnerability in ADOdb allows attackers to exploit improper escaping in the pg_insert_id() function, enabling them to execute arbitrary SQL statements against a PostgreSQL database when user-supplied data is involved.

What to do

With this vulnerability, an attacker could insert malicious SQL commands, leading to unauthorized data access, alteration, or even deletion. Imagine someone walking in and changing the entire menu to their liking or, worse, emptying the fridge completely — absolutely devastating! To secure your applications, immediately upgrade to ADOdb version 5.22.9 or higher. Additionally, review your code to ensure proper escaping of all database inputs, and consider implementing prepared statements for enhanced security. You've got this! Take these steps, and you'll have your database back under control in no time! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00743 · 54.2th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2025-05-01T17:20Z
EPSS history
Timeline
  • 01 MAY 17:20Z
    SQL injection in ADOdb PostgreSQL driver pg_insert_id() method
    cvelistv5