Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.9

CVE-2026-62154: PostgreSQL mysql_fdw allows remote MySQL to inject SQL

CVE-2026-62154 · published 7 days ago
Summary

When you use the mysql_fdw extension to import a foreign MySQL schema into PostgreSQL, it copies column information from the MySQL server straight into CREATE TABLE commands without protecting it. A malicious MySQL server or anyone who can tamper with the connection can supply specially crafted data that causes PostgreSQL to execute unwanted commands. Upgrade to mysql_fdw version 2.10.0 or later, which now properly escapes this data, to stop the risk.

What to do
  • Update enterprisedb mysql foreign data wrapper (mysql_fdw) to version 2.10.0 or later.
Affected software
Ecosystem VendorProductAffected versions
– enterprisedb mysql foreign data wrapper (mysql_fdw) < 2.10.0
Ubuntu:16.04:LTS canonical postgresql-mysql-fdw All versions
Original advisory text
mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA
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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
9.9 Critical
Exploitation
<1% chance of attack within 30 days
Type
CWE-89SQL Injection
Timeline
Published25 Nov 2026
Updated3 Dec 2026
First seen25 Nov 2026
Sources
CVE-2026-62154 · MITRE
Track software like this
Free during beta