# CVE-2026-62153: mysql_fdw SQL injection through ANALYZE, IMPORT FOREIGN SCHEMA and the sql_mode option

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

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.

## 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: 6.4 (medium); CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H; source: CNA: EDB

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

## Provenance

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

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

Revision: 0145747ab3760e350f449df6f5274a7ce9024be253702cc1bea7ee63326be4d3

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

## 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.