AI and data stack advisories

0 critical this month · 294 projects

EnterpriseDBCVE-2026-62157

EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw): out-of-bounds read

EnterpriseDB

CVE-2026-62157 · Published Nov 25, 2026

Medium5.3
Fix: upgrade to 5.6.0 or later
EnterpriseDB advisory

mongo_fdw converts _id values to 12-byte MongoDB ObjectIds with libbson functions that read a fixed number of bytes without checking the input length: 12 bytes for a bytea _id, and 24 characters for name-typed values and $oid fields in JSON. A shorter value causes a read past the end of the input, which can crash the PostgreSQL backend or include adjacent memory in the query sent to MongoDB. Any user who can supply an _id value or predicate on a foreign table can trigger it. The issue is fixed in mongo_fdw 5.6.0. From mongo_fdw 5.6.0, mongo_fdw accepts only valid 24-character hexadecimal ObjectIds and 12-byte bytea values.

Affected versions

PackageAffectedFixed in
MongoDB Foreign Data Wrapper (mongo_fdw)
Product
< 5.6.05.6.0
Details and references
CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Severity from
the vendor (its own CVE record or advisory)
Weakness
CWE-125

More EnterpriseDB advisories

All EnterpriseDB
CVE-2026-62152Nov 25EnterpriseDB MySQL Foreign Data Wrapper: improper privilege managementmysql_fdw accepts several security-sensitive connection options from roles that are not superusers.Medium5.8Fixed in 2.10.0CVE-2026-62153Nov 25EnterpriseDB MySQL Foreign Data Wrapper (mysql_fdw): SQL injectionmysql_fdw inserts several values into statements sent to the remote MySQL server without escaping them: the dbname and table_name options in ANALYZE, the remote schema name and the LIMIT TO and...Medium6.4Fixed in 2.10.0CVE-2026-62154Nov 25EnterpriseDB MySQL Foreign Data Wrapper (mysql_fdw): SQL injectionDuring IMPORT FOREIGN SCHEMA, mysql_fdw copies column metadata returned by the remote MySQL server into the CREATE FOREIGN TABLE statements it runs locally without quoting it.High7.5Fixed in 2.10.0CVE-2026-62155Nov 25EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw): injectionmongo_fdw builds the mongodb:// connection URI by inserting option values without percent-encoding them, so URI metacharacters (@ : / ? # & =) in a value are parsed as part of the URI structure.Medium5.3Fixed in 5.6.0CVE-2026-62156Nov 25EnterpriseDB HDFS Foreign Data Wrapper (hdfs_fdw): SQL injectionhdfs_fdw builds string literals for IN and = ANY(array) clauses pushed down to the remote Hive or Spark server without escaping single quotes.Medium6.5Fixed in 2.4.0CVE-2026-62151Nov 25EnterpriseDB MySQL Foreign Data Wrapper (mysql_fdw): SQL injectionmysql_fdw builds string literals for queries sent to the remote MySQL server with an escaping routine that is not character-set aware.Medium5.8Fixed in 2.10.0