Skip to content
Fencer Vulns
critical 10.0

CVE-2025-46337 json

SQL injection in ADOdb PostgreSQL driver pg_insert_id() method

published 2025-05-01 18 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-13113 , GHSA-8x27-jwjr-8545

cvss
10.0
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 55%
public exploits
0
none known

Summary

ADOdb is a PHP database class library that provides abstractions for performing queries and managing databases. Prior to version 5.22.9, improper escaping of a query parameter may allow an attacker to execute arbitrary SQL statements when the code using ADOdb connects to a PostgreSQL database and calls pg_insert_id() with user-supplied data. This issue has been patched in version 5.22.9.

Patch / fix

  • packagist adodb/adodb-php 5.22.9
  • adodb_project adodb 5.22.9
  • libphp-adodb Debian 12 5.21.4-1+deb12u1
  • libphp-adodb Debian 14, Debian 13 5.22.9-0.1

debian advisories DEBIAN-CVE-2025-46337

  • libphp-adodb Ubuntu 26.04 LTS, Ubuntu 25.10 5.22.9-0.1
  • libphp-adodb Ubuntu Pro 16.04 LTS 5.20.3-1ubuntu1+esm2
  • libphp-adodb Ubuntu Pro 18.04 LTS 5.20.9-1ubuntu0.1~esm2
  • libphp-adodb Ubuntu Pro 20.04 LTS 5.20.16-1ubuntu0.1~esm2
  • libphp-adodb Ubuntu Pro 22.04 LTS 5.20.19-1ubuntu0.1+esm1
  • libphp-adodb Ubuntu Pro 24.04 LTS 5.21.4-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2025-46337

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-46337 updated cvss 10.0

ADOdb: SQL injection in ADOdb PostgreSQL driver pg_insert_id() method

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
total
Assessed
18 mo ago

Exploit prediction

0.76% chance of exploitation in the next 30 days, higher than 55% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
GitHub 3.1 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L

Affected packages

ecosystem package affected fixed in
packagist adodb/adodb-php
<5.22.9
5.22.9

Affected products

  • ADOdb ADOdb

Classification

Weakness
  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.