{"id":"CVE-2026-62154","aliases":[],"title":"mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA","originalDescription":"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.","severity":{"cvss":7.5,"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","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00721,"percentile":0.49841},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"MySQL Foreign Data Wrapper (mysql_fdw)","range":">=0, <2.10.0","fixed":"2.10.0"}],"references":[{"url":"https://www.enterprisedb.com/docs/security/advisories/cve202662154/","type":"vendor-advisory"},{"url":"https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0","type":"release-notes"}],"sources":[{"name":"nvd","at":"2026-11-25T20:25:28.765Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62154","license":"NVD terms of use","firstSeenAt":"2026-11-25T17:40:40.487Z"},{"name":"osv","at":"2026-11-26T21:45:20.988Z","url":"https://osv.dev/vulnerability/CVE-2026-62154","license":"CC-BY 4.0","firstSeenAt":"2026-11-26T21:12:09.326Z"},{"name":"cvelistV5","at":"2026-11-28T22:40:59.749Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-62154","license":"CVE Terms of Use","firstSeenAt":"2026-11-25T17:04:55.496Z"}],"firstSeenAt":"2026-11-25T17:04:55.496Z","publishedAt":"2026-11-25T16:36:23.091Z","modifiedAt":"2026-11-26T21:02:20.418Z"}