{"id":"CVE-2026-62154","aliases":["CVE-2026-62154"],"related":[],"kind":"vulnerability","state":"published","title":"mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA","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. 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"}],"published":"2026-11-25T16:36:23.091Z","modified":"2026-11-25T20:16:05.627Z","severity":{"scorer":"EDB","scheme":"CVSS:4.0","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","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"EDB","scheme":"CVSS:4.0","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","score":7.5,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"2.10.0","status":"affected"}],"vendor":"EnterpriseDB","product":"MySQL Foreign Data Wrapper (mysql_fdw)","repo":"https://github.com/EnterpriseDB/mysql_fdw","source":"cvelist"}],"references":[{"url":"https://www.enterprisedb.com/docs/security/advisories/cve202662154/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0","tags":["patch","release-notes"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"EDB","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-25T17:16:17.930Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-62154","url":"https://www.cve.org/CVERecord?id=CVE-2026-62154","licence":"CVE Terms of Use","modified":"2026-11-25T17:16:57.031Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-62154","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62154","licence":"Public domain","modified":"2026-11-25T20:16:05.627Z"}],"updatedAt":"2026-11-25T23:18:26.226Z","epss":{"score":0.00721,"percentile":0.55186,"date":"2026-12-01T12:00:22.000Z"}}