Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-62154— mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA

Quick assessment

Affected
EnterpriseDB MySQL Foreign Data Wrapper (mysql_fdw)
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

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 t

CVSS 7.5 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-62154

Vulnerability Information

Shenlong is analyzing...


Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
EnterpriseDB MySQL Foreign Data Wrapper (mysql_fdw) 0 ~ 2.10.0 -

II. Public POCs for CVE-2026-62154

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-62154

请登录查看更多情报信息。

Other References for CVE-2026-62154 (2)

Same Patch Batch · EnterpriseDB · 2026-11-25 · 7 CVEs total

CVE-2026-62156 6.5 MEDIUM hdfs_fdw HiveQL injection through pushed-down IN and = ANY(array) string literals
CVE-2026-62153 6.4 MEDIUM mysql_fdw SQL injection through ANALYZE, IMPORT FOREIGN SCHEMA and the sql_mode option
CVE-2026-62152 5.8 MEDIUM mysql_fdw allows non-superusers to set connection options that run SQL and read server fil
CVE-2026-62151 5.8 MEDIUM mysql_fdw SQL injection through a multi-byte character set escaping bypass
CVE-2026-62155 5.3 MEDIUM mongo_fdw connection URI injection through unencoded option values
CVE-2026-62157 5.3 MEDIUM mongo_fdw out-of-bounds read when building an ObjectId from short _id values

IV. Related Vulnerabilities