{"id":"CVE-2026-62152","aliases":[],"title":"mysql_fdw allows non-superusers to set connection options that run SQL and read server files","originalDescription":"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.","severity":{"cvss":5.8,"vector":"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","label":"medium"},"exploitation":{"kev":null,"epss":{"score":0.0057,"percentile":0.41051},"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/cve202662152/","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.759Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62152","license":"NVD terms of use","firstSeenAt":"2026-11-25T17:40:40.481Z"},{"name":"osv","at":"2026-11-26T21:45:21.051Z","url":"https://osv.dev/vulnerability/CVE-2026-62152","license":"CC-BY 4.0","firstSeenAt":"2026-11-26T21:12:09.439Z"},{"name":"cvelistV5","at":"2026-11-28T22:40:59.273Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-62152","license":"CVE Terms of Use","firstSeenAt":"2026-11-25T17:04:55.493Z"}],"firstSeenAt":"2026-11-25T17:04:55.493Z","publishedAt":"2026-11-25T16:36:22.269Z","modifiedAt":"2026-11-26T21:02:20.418Z"}