PT-2026-159303
CVE-2026-62153
·
Published
2026-11-25
·
Updated
2026-11-25
Description by
CVSS 4.0
6.4
MediumMetricsAV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
mysql fdw inserts several values into statements sent to the remote MySQL server without escaping them: the dbname and table name options in ANALYZE, the remote schema name and the LIMIT TO and EXCEPT table names in IMPORT FOREIGN SCHEMA, and the sql mode option in the SET sql mode command. A user who can create or alter foreign tables or foreign servers, or run IMPORT FOREIGN SCHEMA, can break out of the string literal and run arbitrary SQL on the remote MySQL server with the credentials of the user mapping. The issue is fixed in mysql fdw 2.10.0. From mysql fdw 2.10.0, mysql fdw escapes these names and accepts only letters, digits, underscores and commas in sql mode.
Found an issue in the description? Have something to add? Feel free to write us 👾