# CVE-2026-62152: mysql_fdw allows non-superusers to set connection options that run SQL and read server files

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

mysql_fdw accepts several security-sensitive connection options from roles that are not superusers. A role with USAGE on the mysql_fdw foreign data wrapper can set init_command, which runs arbitrary SQL on the remote MySQL server at every connection, including connections made with other users' mappings on a shared foreign server. The same role can set mysql_default_file, ssl_key, ssl_cert, ssl_ca and ssl_capath, which name files read from the PostgreSQL server host, allowing server-side file reads and connection redirection. The issue is fixed in mysql_fdw 2.10.0. From mysql_fdw 2.10.0, only superusers can set init_command, mysql_default_file, ssl_key, ssl_cert, ssl_ca and ssl_capath.

## 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:L/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:L/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-269, CWE-73

## Exploit evidence

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

## References

- https://www.enterprisedb.com/docs/security/advisories/cve202662152/ (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/cve202662152/ (20be33e2-bf35-4d13-8fad-18bd2f3e3659)

## Provenance

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

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

Revision: 59ffd6e62a2234e543453572667815ce72422e06e97d72dcff3803071d55c4bb

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

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