First Published: 2026/11/25
Last Updated: 2026/11/25
Summary
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.
Vulnerability details
CVE-ID: CVE-2026-62153
CVSS Base Score: 6.4 Medium
CVSS Temporal Score: Undefined
CVSS Environmental Score: Undefined
CVSS Vector: 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
Affected products and versions
- Affected Product: MySQL Foreign Data Wrapper (mysql_fdw)
- Affected Versions: mysql_fdw 2.9.3 and earlier, on all supported PostgreSQL and EDB Postgres Advanced Server versions
Remediation/fixes
Impacted users must upgrade to mysql_fdw 2.10.0 or later. From mysql_fdw 2.10.0, mysql_fdw escapes these names and accepts only letters, digits, underscores and commas in sql_mode.
| Product | VRMF | Remediation/First Fix |
|---|---|---|
| mysql_fdw | 2.9.3 and earlier | Update to mysql_fdw 2.10.0 or later |
Mitigation
Until you can upgrade, reduce exposure as follows:
- Limit who can create or alter mysql_fdw foreign tables and foreign servers.
- Grant the MySQL account used in user mappings only the privileges the foreign tables need.
References
- CVSS Calculator v4.0
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
- mysql_fdw 2.10.0 release
Related information
Acknowledgement
Source: Discovered internally by EDB during a security review of mysql_fdw.
Change history
- 2026/11/25: Original Copy Published
Disclaimer
This document is provided on an "as is" basis and does not imply any kind of guarantee or warranty, including the warranties of merchantability or fitness for a particular use. Your use of the information on the document is at your own risk. EDB reserves the right to change or update this document at any time. Customers are therefore recommended to always view the latest version of this document.