mysql_fdw IMPORT FOREIGN SCHEMA lets a malicious MySQL server run SQL
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
mysql_fdw copies column metadata from the remote MySQL server into CREATE FOREIGN TABLE statements during IMPORT FOREIGN SCHEMA without quoting it. The COLUMN_DEFAULT value goes directly into the DEFAULT clause, and the generated ENUM type name 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 running IMPORT FOREIGN SCHEMA. The weakness is CWE-89.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
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. The issue is fixed in mysql_fdw 2.10.0. From mysql_fdw 2.10.0, mysql_fdw quotes these values before building the statements.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| EnterpriseDB | MySQL Foreign Data Wrapper (mysql_fdw) | before 2.10.0 | 2.10.0 | Patch available | CNA |
- MySQL Foreign Data Wrapper (mysql_fdw) VendorEnterpriseDB Affected before 2.10.0 Fixed in 2.10.0 Patch available CNA
Remediation
Upgrade mysql_fdw to 2.10.0, which quotes these values before building the statements. Versions before 2.10.0 remain affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
- Fix · CNA MySQL Foreign Data Wrapper (mysql_fdw) (EnterpriseDB) Fixed in 2.10.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
EnterpriseDB MySQL Foreign Data Wrapper (mysql_fdw) 2.10.0
4 records Highest priority Priority LOW 4 LOW
Other records, highest priority first
- TI-2026-98315 SQL injection in mysql_fdw via ANALYZE and IMPORT FOREIGN SCHEMAPriority LOW 30
- TI-2026-98314 mysql_fdw lets non-superusers run SQL and read server filesPriority LOW 27
- TI-2026-98313 SQL injection in mysql_fdw through character set escaping bypassPriority LOW 27
Timeline
- 2026-11-25 Threatist record created from CVE-2026-62154
- 2026-11-25 CISA SSVC decision points changed
- 2026-11-25 Alias added: GHSA-x5jx-6546-4m83
References
More EnterpriseDB vulnerabilities
- TI-2023-21738 An issue was discovered in EnterpriseDB Postgres Advanced Server (EPAS) before 11.21.32… CVSS 3.1CRITICAL 9.8
- TI-2026-95912 Untrusted search path in Postgres Enterprise Manager allows superuser SQL CVSS 4.0CRITICAL 9.4
- TI-2026-95911 Postgres Enterprise Manager agents can change other agents' jobs CVSS 4.0CRITICAL 9.4
- TI-2026-95910 PEM agent role grants file read and write on the PEM server host CVSS 4.0CRITICAL 9.4
- TI-2023-21739 An issue was discovered in EnterpriseDB Postgres Advanced Server (EPAS) before 11.21.32… CVSS 3.1HIGH 8.8
- TI-2026-37400 When applying replicated changes for a row that is missing one or more columns, pglogical… CVSS 4.0CRITICAL 9.0
Sources
- CVE-2026-62154 · CVE Program
- CVE-2026-62154 · NVD
- FIRST EPSS
- GHSA-x5jx-6546-4m83 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences