CVE-2026-62152
published medium CVSS 4.0 · 5.8mysql_fdw allows non-superusers to set connection options that run SQL and read server files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| EnterpriseDB | — | MySQL Foreign Data Wrapper (mysql_fdw)0 to < 2.10.0 · Other versions: unaffected | Affected | Not stated | EDB |
| Alpine Linux | edge | postgresql-mysql_fdw | Fixed | 2.10.0-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.8 / 10
- Severity
- medium
- Provider
- EDB · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| EnterpriseDB | MySQL Foreign Data Wrapper (mysql_fdw) | 0 to < 2.10.0 (affected · custom)Default: unaffected | EDB · cna |
Weaknesses
2- CWE-269 CWE-269 Improper Privilege Management
- CWE-73 CWE-73 External Control of File Name or Path
References
2Provider assertions
2EDB · cna
mysql_fdw allows non-superusers to set connection options that run SQL and read server files
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f3fd50dd65ccc3031e56a8c46568cc07c9912cd6652549baf8d5e2b25ffce50d
- Ingested
- 25 Nov 2026, 17:29:39 UTC
- Source record
- Official CVE record