First Published: 2026/11/25
Last Updated: 2026/11/25
Summary
During 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. The COLUMN_DEFAULT value is placed directly in the DEFAULT clause, and the name of the generated ENUM type is inserted unquoted. A malicious or compromised MySQL server, or an attacker who can tamper with the connection, can return crafted information_schema metadata and run arbitrary SQL in the local PostgreSQL session of the user who runs IMPORT FOREIGN SCHEMA.
Vulnerability details
CVE-ID: CVE-2026-62154
CVSS Base Score: 7.5 High
CVSS Temporal Score: Undefined
CVSS Environmental Score: Undefined
CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
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 quotes these values before building the statements.
| 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:
- Run IMPORT FOREIGN SCHEMA only against trusted MySQL servers, over TLS, as a role with no more privileges than it needs.
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.