{"id":"CVE-2026-62151","aliases":[],"title":"mysql_fdw SQL injection through a multi-byte character set escaping bypass","originalDescription":"mysql_fdw builds string literals for queries sent to the remote MySQL server with an escaping routine that is not character-set aware. When the connection uses a multi-byte character set such as GBK, SJIS or Big5 and MySQL's default backslash escaping is in effect, a crafted value whose trailing byte is 0x5C absorbs the escaping backslash and leaves the following quote unescaped. The routine handles every pushed-down string constant, including ordinary WHERE-clause literals, so an authenticated user with only SELECT on a foreign table can break out of the 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 forces NO_BACKSLASH_ESCAPES into the session sql_mode and escapes string literals by doubling single quotes.","severity":{"cvss":5.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.00644,"percentile":0.45531},"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/cve202662151/","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.756Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62151","license":"NVD terms of use","firstSeenAt":"2026-11-25T17:40:40.478Z"},{"name":"osv","at":"2026-11-26T21:45:21.023Z","url":"https://osv.dev/vulnerability/CVE-2026-62151","license":"CC-BY 4.0","firstSeenAt":"2026-11-26T21:12:09.356Z"},{"name":"cvelistV5","at":"2026-11-28T22:40:59.315Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-62151","license":"CVE Terms of Use","firstSeenAt":"2026-11-25T17:04:55.478Z"}],"firstSeenAt":"2026-11-25T17:04:55.478Z","publishedAt":"2026-11-25T16:36:21.858Z","modifiedAt":"2026-11-26T21:02:20.418Z"}