# CVE-2026-62151: mysql_fdw SQL injection through a multi-byte character set escaping bypass

Status: published. Published: 2026-11-25. Updated: 2026-11-25.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: EDB) — https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0

## Affected products and versions

- EnterpriseDB / MySQL Foreign Data Wrapper (mysql_fdw): ≥ 0; < 2.10.0 (affected, custom). Source: CNA: EDB

## Severity and prioritization

- CVSS 4.0: 5.8 (medium); 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; source: CNA: EDB

- CVSS 4.0: 5.8 (medium); 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/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; source: NVD: 20be33e2-bf35-4d13-8fad-18bd2f3e3659

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-89

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://www.enterprisedb.com/docs/security/advisories/cve202662151/ (CNA: EDB; vendor-advisory)

- https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0 (CNA: EDB; release-notes, patch)

- https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0 (20be33e2-bf35-4d13-8fad-18bd2f3e3659)

- https://www.enterprisedb.com/docs/security/advisories/cve202662151/ (20be33e2-bf35-4d13-8fad-18bd2f3e3659)

## Provenance

- CNA: EDB: https://www.cve.org/CVERecord?id=CVE-2026-62151; retrieved 2026-11-25; source updated 2026-11-25

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-62151; retrieved 2026-11-25; source updated 2026-11-25

Revision: 1cc3b6df535851c5f1413d9f9783c15159d0c017401a0167d6b62af605247b1f

Canonical: https://y2.dev/cve/CVE-2026-62151

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.