mysql_fdw allows non-superusers to set connection options that run SQL and read server files
Summary
| CVE | CVE-2026-62152 |
|---|---|
| State | PUBLISHED |
| Assigner | EDB |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-25 17:17:57 UTC |
| Updated | 2026-11-25 18:18:54 UTC |
| 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. |
Risk And Classification
Primary CVSS: v4.0 5.8 MEDIUM from 20be33e2-bf35-4d13-8fad-18bd2f3e3659
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
Problem Types: CWE-73 | CWE-269 | CWE-269 CWE-269 Improper Privilege Management | CWE-73 CWE-73 External Control of File Name or Path
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | 20be33e2-bf35-4d13-8fad-18bd2f3e3659 | Secondary | 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/C... |
| 4.0 | CNA | CVSS | 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 |
CVSS v4.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowAttack Requirements
PresentPrivileges Required
LowUser Interaction
NoneConfidentiality
LowIntegrity
NoneAvailability
NoneSub Conf.
HighSub Integrity
HighSub Availability
HighCVSS: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
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | EnterpriseDB | MySQL Foreign Data Wrapper Mysql Fdw | affected 2.10.0 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| www.enterprisedb.com/docs/security/advisories/cve202662152 | 20be33e2-bf35-4d13-8fad-18bd2f3e3659 | www.enterprisedb.com | |
| github.com/EnterpriseDB/mysql_fdw/releases/tag/REL-2_10_0 | 20be33e2-bf35-4d13-8fad-18bd2f3e3659 | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.