AI and data stack advisories

0 critical this month · 294 projects

EnterpriseDBCVE-2026-62155

EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw): injection

EnterpriseDB

CVE-2026-62155 · Published Nov 25, 2026

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

mongo_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. A role that is not a superuser but has USAGE on a foreign server can set the username and password options in its own user mapping. An @ or other metacharacter in those values can point the connection at a host the attacker controls, allowing connection redirection, credential capture and man-in-the-middle attacks. Server-level options such as the address, database and replica set can be injected the same way. The issue is fixed in mongo_fdw 5.6.0. From mongo_fdw 5.6.0, mongo_fdw builds the URI with the libmongoc URI API, which encodes credentials, and rejects URI metacharacters in the other option 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:L/VA:N/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-74, CWE-88

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-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-62157Nov 25EnterpriseDB MongoDB Foreign Data Wrapper (mongo_fdw): out-of-bounds readmongo_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...Medium5.3Fixed in 5.6.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