EnterpriseDBCVE-2026-62153
EnterpriseDB MySQL Foreign Data Wrapper (mysql_fdw): SQL injection
Fix: upgrade to 2.10.0 or later
mysql_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 EXCEPT table names in IMPORT FOREIGN SCHEMA, and the sql_mode option in the SET sql_mode command. A user who can create or alter foreign tables or foreign servers, or run IMPORT FOREIGN SCHEMA, can break out of the string literal and run arbitrary SQL on the remote MySQL server with the credentials of the user mapping. The issue is fixed in mysql_fdw 2.10.0. From mysql_fdw 2.10.0, mysql_fdw escapes these names and accepts only letters, digits, underscores and commas in sql_mode.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| MySQL Foreign Data Wrapper (mysql_fdw) Product | < 2.10.0 | 2.10.0 |
Details and references
- CVSS 4.0
- CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/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-89
More EnterpriseDB advisories
All EnterpriseDBCVE-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-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-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