CVE-2026-62154
published high CVSS 4.0 · 7.5mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA
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
During IMPORT FOREIGN SCHEMA, mysql_fdw copies column metadata returned by the remote MySQL server into the CREATE FOREIGN TABLE statements it runs locally without quoting it. The COLUMN_DEFAULT value is placed directly in the DEFAULT clause, and the name of the generated ENUM type is inserted unquoted. A malicious or compromised MySQL server, or an attacker who can tamper with the connection, can return crafted information_schema metadata and run arbitrary SQL in the local PostgreSQL session of the user who runs IMPORT FOREIGN SCHEMA. The issue is fixed in mysql_fdw 2.10.0. From mysql_fdw 2.10.0, mysql_fdw quotes these values before building the statements.
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
- 7.5 / 10
- Severity
- high
- Provider
- EDB · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
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
1- CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
2Provider assertions
2EDB · cna
mysql_fdw runs SQL supplied by a malicious MySQL server during IMPORT FOREIGN SCHEMA
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f7dad07d0c4b1b3c8bdcbe670caa031901ceb66492fa9c377ef8cbb7e337acf8
- Ingested
- 25 Nov 2026, 17:19:30 UTC
- Source record
- Official CVE record