{"id":"CVE-2026-62152","aliases":["CVE-2026-62152"],"related":[],"kind":"vulnerability","state":"published","title":"mysql_fdw allows non-superusers to set connection options that run SQL and read server files","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-25T16:36:22.269Z","modified":"2026-11-25T20:16:05.627Z","severity":{"scorer":"EDB","scheme":"CVSS:4.0","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","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"EDB","scheme":"CVSS:4.0","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","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-73","CWE-269"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"2.10.0","status":"affected"}],"vendor":"EnterpriseDB","product":"MySQL Foreign Data Wrapper (mysql_fdw)","repo":"https://github.com/EnterpriseDB/mysql_fdw","source":"cvelist"}],"references":[{"url":"https://www.enterprisedb.com/docs/security/advisories/cve202662152/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0","tags":["patch","release-notes"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"EDB","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-25T17:19:11.414Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-62152","url":"https://www.cve.org/CVERecord?id=CVE-2026-62152","licence":"CVE Terms of Use","modified":"2026-11-25T17:19:20.009Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-62152","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62152","licence":"Public domain","modified":"2026-11-25T20:16:05.627Z"}],"updatedAt":"2026-11-25T23:18:23.807Z","epss":{"score":0.0057,"percentile":0.48551,"date":"2026-12-01T12:00:22.000Z"}}