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

- Severity: Medium 5.8 (CVSS:4.0, scored by EDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-11-25T16:36:22.269Z
- Modified: 2026-11-25T20:16:05.627Z
- Weaknesses: CWE-73, CWE-269
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EDB

## Description

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.

(As written by CVE List.)

## Affected

- EnterpriseDB MySQL Foreign Data Wrapper (mysql_fdw): before 2.10.0

## References

- <https://www.enterprisedb.com/docs/security/advisories/cve202662152/> (vendor-advisory)
- <https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0> (patch, release-notes)

## Sources

- CVE List: [CVE-2026-62152](https://www.cve.org/CVERecord?id=CVE-2026-62152), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-62152](https://nvd.nist.gov/vuln/detail/CVE-2026-62152), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-62152 · Whole record: https://cve.day/CVE-2026-62152.json · Rebuilt by cve.day 2026-11-25T23:18:23.807Z
